开发者

HTMLEditor's content not see <br/>

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.

开发者_StackOverflow中文版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


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!


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜