Multiple editors in a popup page in firefox

Last post 09-02-2015, 8:11 AM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  08-28-2015, 1:47 AM 80811

    Multiple editors in a popup page in firefox

    I have three editors in a page.

    I found that in Firefox, the  CuteEditor_OnInitialized only process for the third one. (There is no problem in IE)

    The first two editors cannot be used.

     

     

    Filed under: ,
  •  09-01-2015, 1:50 PM 80869 in reply to 80811

    Re: Multiple editors in a popup page in firefox

    Hi,

     

    Maybe you can try the way below to handle different editor in OnInitialized api.

     

    1. <%@ Page Language="C#" ValidateRequest="false" %>  
    2.   
    3. <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>  
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    5. <html xmlns="http://www.w3.org/1999/xhtml">  
    6. <head id="Head1" runat="server">  
    7.     <title>GetPlainText</title>  
    8. </head>  
    9. <body id="">  
    10.     <form id="form1" runat="server">  
    11.         <CE:Editor ID="Editor1" runat="server">  
    12.         </CE:Editor>  
    13.         <CE:Editor ID="Editor2" runat="server">  
    14.         </CE:Editor>  
    15.         <CE:Editor ID="Editor3" runat="server">  
    16.         </CE:Editor>  
    17.     </form>  
    18. </body>  
    19. </html>  
    20.   
    21. <script type="text/javascript">  
    22. var editor1 = document.getElementById('<%= Editor1.ClientID%>');  
    23. var editor2 = document.getElementById('<%= Editor2.ClientID%>');  
    24. var editor3 = document.getElementById('<%= Editor3.ClientID%>');  
    25. function CuteEditor_OnInitialized(editor)  
    26. {  
    27.     setContent();  
    28.   
    29. }  
    30. function setContent()  
    31. {  
    32.     editor1.SetHTML("abc");  
    33.     editor2.SetHTML("def");  
    34.     editor3.SetHTML("ghi");  
    35. }  
    36. </script>  
     

    Regards,

     

    Ken 

  •  09-02-2015, 3:00 AM 80890 in reply to 80869

    Re: Multiple editors in a popup page in firefox

    Dear Ken,

     

    Same result.
    I put an alert in the initialized function, only process "Editor3". 

  •  09-02-2015, 8:11 AM 80893 in reply to 80890

    Re: Multiple editors in a popup page in firefox

    Hi,

     

    yes, it only fire once with the latest editor. but can you explain your requirement in detail what you want to achieve with all editors in your page? maybe has other way can achieve it even the initialized only fire once on firefox. and this issue has reported to the developer, we will fix it as soon as possible.

     

    Regards,

     

    Ken 

View as RSS news feed in XML