Opened 14 years ago

Closed 14 years ago

#7510 closed Bug (fixed)

element br removed at the last

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

Description

While using the method CKEDIOTR.setData end of the line <br> element gets removed in firefox.

config.enterMode = CKEDITOR.ENTER_BR, Firefox 3.6.13, Linux OS.

Change History (2)

comment:1 Changed 14 years ago by Jakub Ś

Status: newpending

Did you mean insertHTML or setData Function? setData - removes all the previous editor's content with the provided markup. So it cleans everything that is currently in editor. Not just BR's.

insertHTML - adds provided markup to the current editor's markup. But I did not noticed any BRs were removed or ignored.

If you meant that markup provided for setData looses it's BRs:

<h2>Test</h2><p>This is some <a href="/Test1.html">sample</a> HTML code.</p><br/>

than I also haven't noticed any BR ignoring.

Have you tired to reproduce this example with the latest stable version (3.5.3) or with the latest nightly build http://nightly.ckeditor.com/demo. Maybe this issue has already been fixed?

comment:2 Changed 14 years ago by bala

Resolution: fixed
Status: pendingclosed

I'm not using the wysiwyg editor the insertHtml option not work for me, instead of that allowing visitors to edit a particular content of my web page, if they do double click on a div to edit the contents I'll open the CKeditor in a separate window with that particular div's html(only the innerhtml of the div ) . once they edited the text I'll collect the html using getData option and replace the content. Everything works fine here, except end of the line <br> element gets removed.

As per your advice the latest version 3.5.3 solved my problem, thank you very much.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy