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

Line breaks

1 Answer 49 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Atchuta
Top achievements
Rank 1
Atchuta asked on 16 Nov 2011, 04:54 PM
Greetings,

I have been using RAD Editor for a year with out any issues. Recently I noticed, Editor is inserting additional line breaks when saving the data in html format.

Has any one seen this issue? Please guideme in right direction to resolve this issue.

Thanks
Atchuta

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 17 Nov 2011, 04:07 PM
Hello Atchuta,

My suggestion is to disable the built-in IndentHTMLContent indentation filter of RadEditor which adds a lot of spaces to nicely indent the content in HTML mode.

RadEditor1.DisableFilter(EditorFilters.IndentHTMLContent);

You can also strip the \r\n line feeds when obtaining the content from RadEditor
RadEditor1.Content.Replace("\n", "").Replace("\r", "") 



Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Editor
Asked by
Atchuta
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or