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

RadEditor - prevent line breaks/wrapping in HTML tab

1 Answer 191 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Amy
Top achievements
Rank 1
Amy asked on 25 Mar 2011, 05:54 PM
Hi!  Is there a way to prevent the RadEditor from wrapping lines in the HTML tab? 

When text is pasted into the Design tab of the editor it goes all the way across the width of the editor.  However when clicking on the HTML tab the lines appear to be wrapped, that is only going partially across the width of the editor, even though I do not see any actual <br> tags or line feeds.

Is it perhaps due to the width of the editor?  I notice on another page where the editor is used, the editor is much smaller and doesn't appear to behave this way.

Thanks!

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 29 Mar 2011, 02:43 PM
Hi Amy,

The long and incesent text is wrapped in both Design and HTML mode. The text is wrapped in Design mode because of the word-wrap: break-word; css property applied to the BODY of the content area.
In HTML mode the content area is a standard TextArea which content is automatically wrapped to the next line. See this video for more information: http://screencast.com/t/r2PhI7BY.

If you are able to stop the text wrapping in a standard textarea send the code / css stylesheet and I will show you how to integrate the solution for HTML mode of RadEditor. Here is a test textarea:

<textarea style="font: 11px/normal Tahoma; overflow:scroll; border: 0px currentColor; width: 100px; height: 100%; color: rgb(0, 0, 128); font-size-adjust: none; font-stretch: normal; resize: none;">ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd</textarea> 


Kind regards,
Rumen
the Telerik team
Tags
Editor
Asked by
Amy
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or