Re: CuteEditor onchange event fired only after a few seconds after change.

  •  11-27-2008, 6:33 AM

    Re: CuteEditor onchange event fired only after a few seconds after change.

    hi tonyjepson,
     
    OnTextChange only fire when the page is PostBack, please try this code:
     

    <%@ Page Language="C#" %>

    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
    <html>
    <body>
        <form runat="server" id="Form1">
            <CE:Editor ID="Editor1" OnTextChanged="Submit" runat="server">
            </CE:Editor>
            <asp:Literal ID="Literal1" runat="server" /><br />
            <asp:Button ID="button1" runat="server" Text="WhenTextChangeClickMe" />
        </form>
    </body>
    </html>

    <script runat="server">
        public void Submit(object sender, System.EventArgs e)
        {
            Literal1.Text = "<h2>The HTML you typed is...</h2><br>";
            Literal1.Text += Server.HtmlEncode(Editor1.Text);
        }
    </script>

     Regards,
     
    Ken
View Complete Thread