Opened 12 years ago
Last modified 9 years ago
#10497 confirmed Bug
Empty lines are removed in enter mode BR - continuation — at Initial Version
Reported by: | Jakub Ś | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.1.1 |
Keywords: | Cc: |
Description
This is continuation of http://dev.ckeditor.com/ticket/10146#comment:26.
Seems ticket isn't fully fixed. Problem can be reproduced in every browser.
To reproduce:
- Set enter mode to BR
- Clear editor contents and paste below code:
<table> <tbody> <tr> <td>Table cell contents</td> </tr> </tbody> </table> <br/> <br/> <p>P contents</p>
- Switch to WYSIWYG and then to source:
<table> <tbody> <tr> <td>Table cell contents</td> </tr> </tbody> </table> <p>P contents</p>
Result: As you can see two BR's were changed into single .
If you were writing an article, created table and wanted to make some space below it then on page save you would end up with single which wasn't intended.
NOTE: This is happening if you use one or two BR's. If you use three BR's then result is "br br nbsp". Assuming that last Br has to be changed into nbsp, should it be "br nbsp" when two BR's are used?
It seems ticket #10146 hasn’t been fully fixed thus this one should be closed and the former reopened.
I have just found that if you paste below into editor behaviour will be different in IE. All other browsers change two BR’s into but IE does it in one by one style – it removes br and on second switch it turns last br into
<div>text</div> <br /> <br /> <table> <tbody> <tr> <td>Table cell contents</td> </tr> </tbody> </table>