Opened 13 years ago
Last modified 13 years ago
#8760 confirmed Bug
BR tags get removed when switching from source and back.
Reported by: | Jakub Ś | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.5 |
Keywords: | Cc: |
Description
- Set
config.fillEmptyBlocks = false; config.enterMode = CKEDITOR.ENTER_BR;
- Pase the below in source mode and switch to wysiwyg
<div style="text-align:justify;"> test line 1</div> <div style="text-align:justify;"> test line 2</div>
- Put caret behind
test line 1^
and press enter two times - Switch to source and wyswig two times
Results: because there is no tag behind <br /> tag, the br tags are removed.
Reproducible in all browsers from CKEditor 3.5
Change History (2)
comment:1 Changed 13 years ago by
Status: | new → confirmed |
---|
comment:2 Changed 13 years ago by
A workaround is to use:
config.fillEmptyBlocks = function(element){ if(!element.children.length){ return false; } }
Please also have a look at: http://screencast.com/t/ovTjvVG6yxS4