Sunday, 11 August 2013

HTML Editor Extender (Ajax Toolkit)

HTML Editor Extender (Ajax Toolkit)

This is the code that I am using for my HTML Editor Extender:
<asp:HtmlEditorExtender ID="htmlExtender" runat="server"
TargetControlID="txtContent">
<Toolbar>
<asp:Bold />
<asp:Underline />
</Toolbar>
</asp:HtmlEditorExtender>
<asp:TextBox runat="server" ID="txtContent" TextMode="MultiLine"
Columns="50" Rows="10" />
The HTML Editor works fine, but there is one bug which I can't fix. I did
research but couldn't find a solution.
After clicking on a button to save the text from the textbox, the text
that is written after a line-break doesn't get saved, and it get's removed
from the textbox and only the text that was written before the line-break
is staying.
Example:
Hello World!
Why does this happen?
From this above: After the button click: The Hello World! stays in the
textbox, and gets saved, but the Why does this happen?-text gets removed
and doesn't get saved (this happens with all text after every ling-break.

No comments:

Post a Comment