I am using AjaxToolKit's HTMLEditorExtender control in my website. The code is as follows:
<asp:TextBox ID="TextBox2" runat="server" Font-Names="'lucida grande',tahoma,verdana,arial,sans-serif" Height="100%" ontextchanged="TextBox2_TextChanged" style="margin-bottom: 26px; font-size: small;" Width="90%"></asp:TextBox>
<asp:HtmlEditorExtender ID="TextBox2_HtmlEditorExtender" runat="server"Enabled="True"TargetControlID="TextBox2"><Toolbar><asp:Undo/><asp:Redo/><asp:Bold/><asp:Italic/><asp:Underline/><asp:StrikeThrough/><asp:Subscript/><asp:Superscript/><asp:InsertOrderedList/><asp:InsertUnorderedList/><asp:RemoveFormat/><asp:SelectAll/><asp:UnSelect/><asp:Delete/><asp:Cut/><asp:Copy/><asp:Paste/><asp:Indent/><asp:Outdent/><asp:FontNameSelector/></Toolbar></asp:HtmlEditorExtender>
When I run this code, and type something in TextBox2, and when I press enter, no new line is inserted instead it goes out of focus of TextBox2. There is no problem until there is no HTMLEditorExtender attached to this TextBox2.