Opened 8 years ago

Last modified 8 years ago

#8267 confirmed Bug

protectedSource is removed when it is the only source

Reported by: Patrick Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0.2
Keywords: Cc:

Description

If a tag matches an item in the protectedSource regular expression and it is the only content, then it is removed when switching to WYSIWYG mode and back to Source mode.

Steps to reproduce:

  1. Create a CKEditor using the following configuration:
    var config = {
                    protectedSource: [/<photo[0-9]+>/gi],
                    startupMode: 'source'
                };
    
  2. Enter the text <photo1> into CKEditor.
  3. Click the "Source" button to switch to WYSIWYG mode and click "Source" again to switch back to source mode

Expected Result:

  1. CKEditor contains the content <photo1>

Actual Result:

  1. CKEditor content is empty

Change History (1)

comment:1 Changed 8 years ago by Jakub Ś

Status: newconfirmed
Version: 3.0.2

Reproducible from CKEditor 3.0.2 in IE, Webkit and FF (4 and 5).

Works fine in FF 3.6.20 and Opera

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy