ASP TextBox with HtmlEditorExtender and ResizableControlExtender Issue

I m trying to build a resizable RichText Editor control.

I tried to use the HtmlEditorExtender and ResizableControlExtender but it seems as if they are mutually exclusive (If one works the other does not). The extender that works is the one that appears first.

Any suggestions

This is my code:

<%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit" %>
 
 <script>
     function ResizeTextBox(sender, eventargs)
     {
         var element = sender.control.element;
         element.children[2].style.height = element.style.height;
         return false;
     }
</script>

<asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" CssClass="DDControl DDValidator" ControlToValidate="TextBox1" Display="Static" Enabled="false" />
<asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator1" CssClass="DDControl DDValidator" ControlToValidate="TextBox1" Display="Static" Enabled="false" />
<asp:DynamicValidator runat="server" ID="DynamicValidator1" CssClass="DDControl DDValidator" ControlToValidate="TextBox1" Display="Static" />
<asp:ResizableControlExtender ID="ResizableControlExtender1" TargetControlID="TextBox1" HandleCssClass="ResizableControlCSS" MinimumWidth="300" MinimumHeight="300" onclientresizing="ResizeTextBox" runat="server"></asp:ResizableControlExtender>
<asp:HtmlEditorExtender ID="HtmlEditorExtender1" TargetControlID="TextBox1" runat="server"/>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# FieldValueEditString %>' CssClass="DDTextBox" TextMode="MultiLine" Width="300" Height="100" ></asp:TextBox>

thoughts on "ASP TextBox with HtmlEditorExtender and ResizableControlExtender Issue"

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>