views:

131

answers:

2

Hi, I'm using an editor control of ajaxcontroltoolkit.

<cc1:Editor ID="EditNews" runat="server" NoUnicode="true"/>

My problem is that when I try to get the content of Editor by:

Literal1.Text = EditNews.Content;

if in the editor there are breakLine for example "If I write"

Text Text

Text



Text

In Literal I get:

Text Text
Text
Text

Whitout breakLine.

I don't know if this problem depends by an attribute that I haven't set in Editor or I have to control this "
" in Code Behind.

Thanks for help

A: 

Hi guys, I believe to understand the problem. In effect is not a problem,but if you use the alignment (center,right, or left) and then directly you try to do breakline it doesn't work because in html it generate:

<p style="text-align: center; margin: 0px"></p>

If you don't use alignment and try to do breakline then it generate in html

<br/>

and so work correctly!

Now, I have another problem with my editor, in fact If I try to write very hard text, my editor cut text!

Ivan90
A: 

If you want WYSWYG editor then just use FCK/CK Editor, those are really best ones.

A Bright Worker