Opened 8 years ago

Closed 8 years ago

#14668 closed Bug (expired)

CKEditor Lost \r\n

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



For historical reasons the textarea element returns an \n by reading the value, if setting the textarea content with an \r\n inside. Is there any possiblity to prevent the CKEditor to do this? Just like the lineBreakChars of the CKEDITOR.htmlWriter-Modul?


Change History (2)

comment:1 Changed 8 years ago by Jakub Ś

Status: newpending
Version: 4.5.10 (GitHub - master)

The retuned for simplicity has \n set. This is the default setting.

You can either try using getData().replace( /\n/, '\r\n' ); or configuring htmlWriter to return \r\n -!/api/CKEDITOR.htmlWriter-property-lineBreakChars. The htmlWriter takes care of data returned from editor so changing its settings should do the trick.

Does this answer your question?

comment:2 Changed 8 years ago by Jakub Ś

Resolution: expired
Status: pendingclosed
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