Closed (fixed)
Project:
CKEditor 4 - WYSIWYG HTML editor
Version:
6.x-1.0
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Feb 2010 at 14:34 UTC
Updated:
5 Jul 2010 at 20:14 UTC
If I add an empty div using HTML source mode:
<div style="background-color:#666;width:50px;height:50px;">
</div>
..then turn off source view, do some edits via WYSIWYG mode, and then switch back to source mode: the div is deleted from the source when I go back to source mode.
Inserting a comment into the div will prevent it from being deleted:
<div style="background-color:#666;width:50px;height:50px;">
<!--test-->
</div>
The same holds true for <p> tags
Comments
Comment #1
robertjd commentedI found that by setting this javascript configuration:
The empty elements will not be deleted. However, a non-breaking space entity is inserted in the empty element. Is there a way to stop that?
Comment #2
wwalc commented