Opened 13 years ago
Last modified 13 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:
- Create a CKEditor using the following configuration:
var config = { protectedSource: [/<photo[0-9]+>/gi], startupMode: 'source' };
- Enter the text
<photo1>
into CKEditor. - Click the "Source" button to switch to WYSIWYG mode and click "Source" again to switch back to source mode
Expected Result:
- CKEditor contains the content
<photo1>
Actual Result:
- CKEditor content is empty
Reproducible from CKEditor 3.0.2 in IE, Webkit and FF (4 and 5).
Works fine in FF 3.6.20 and Opera