This is a migrated thread and some comments may be shown as answers.

Editor does not recoginize \r\n

1 Answer 103 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 23 Apr 2009, 07:19 PM
I'm trying to use radeditor as simple text editor wherein I capture script code snippets for dynamic execution else where in my system.  However, when I retreive the saved code snippet and set it on the content property of the editor, the editor does not recognize the new line control characters and places the entire script on one line.

Is there a way to have the editor recognized the new line characaters (like notepad, etc)?  I've looked at the various formatting options and nothing is jumping out at me.

thanks.
mark

1 Answer, 1 is accepted

Sort by
0
ManniAT
Top achievements
Rank 2
answered on 24 Apr 2009, 08:19 PM
Hi,

as stated in some other threads - RadEditor is a pure HTML / XHTML editor.
It uses linefeed only for "better readability".

Take a look at this post (there is also a link to a more detailed post inside):
http://www.telerik.com/community/forums/aspnet-ajax/editor/radeditor-in-plain-text-mode-only.aspx

Regards

Manfred
Tags
Editor
Asked by
Mark
Top achievements
Rank 1
Answers by
ManniAT
Top achievements
Rank 2
Share this question
or