Re: Multiple editors in a popup page in firefox

  •  09-01-2015, 1:50 PM

    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 

View Complete Thread