Problem using multiple instances of CuteEditor inside UpdatePanel on Google Chrome

Last post 02-03-2009, 1:21 AM by Kenneth. 2 replies.
Sort Posts: Previous Next
  •  01-28-2009, 2:20 PM 48167

    Problem using multiple instances of CuteEditor inside UpdatePanel on Google Chrome

    The following error occurs on on Google Chrome (doesn't seem to affect IE7 and Firefox):

    When I use multiple instances of CuteEditor inside an UpdatePanel, any text changes in the 2nd instance of the editor are not reflected in the "Text" property.  I only experience this problem on Chrome when using an UpdatePanel; if not Chrome *or* not in an UpdatePanel, everything works as expected.

    The instances of the editor are declared as follows:

        <asp:UpdatePanel ID="upProfile" runat="server" Visible="true">
    (...) 
                                 <CE:Editor id="CEfirstAnswer" runat="server" OnLoad="CEfirstAnswer_OnLoad" /> 
                                <br />
                                <p>(text goes here)</p>
                                <br />
                                <CE:Editor id="CEsecondAnswer" runat="server" OnLoad="CEsecondAnswer_OnLoad"  /> 
    (...)
        </asp:UpdatePanel>                        

    AJAX functionality is required for something else on the page and it is not possible to arrange things so that the instances of CuteEditor appear outside of the UpdatePanel.

    Any ideas???

    Thanks,
    Robert
     

  •  01-28-2009, 2:36 PM 48168 in reply to 48167

    Re: Problem using multiple instances of CuteEditor inside UpdatePanel on Google Chrome

    An update:  In the 2nd editor, if you change the text, then click one of the buttons that changes text justification, the "Text" property does then get updated with the latest text.

    Is there a method I can call which will force the "Text" property to be updated with the latest text? 
  •  02-03-2009, 1:21 AM 48279 in reply to 48167

    Re: Problem using multiple instances of CuteEditor inside UpdatePanel on Google Chrome

    Hi rmisiak,
     
    Please try the following code:
     
    It works fine for me, if it is not you mean, please create a page can reproduce this issue and send it to me.
     
    My Eamil address: [email protected]
     

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

    <%@ Register Namespace="CuteEditor" Assembly="CuteEditor" TagPrefix="CE" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <script runat="server">

        protected void Button1_Click(object sender, EventArgs e)
        {
            Label1.Text = Editor2.Text;
        }
    </script>

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>test</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <CE:Editor ID="Editor1" runat="server">
                    </CE:Editor>
                    <CE:Editor ID="Editor2" runat="server">
                    </CE:Editor>
                </ContentTemplate>
            </asp:UpdatePanel>
            <p>Change text of editor2 and click this button</p>
            <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="ClickMe" />
            <br />
            <asp:Label ID="Label1" runat="server"></asp:Label>
        </div>
        </form>
    </body>
    </html>
     
    Regards,
     
    Ken
View as RSS news feed in XML