Re: cute Editor 6.5 IE Execute SetHTML () "js function cannot edit issues

  •  11-10-2009, 8:49 PM

    Re: cute Editor 6.5 IE Execute SetHTML () "js function cannot edit issues

    Hi wpy126,
     
    It works fine for me, can you reproduce this issue on our online demo?
     
    Demo:
     
     
    Please test the code below
    1. <%@ Page Language="C#" AutoEventWireup="True" %>   
    2.   
    3. <%@ Register Namespace="CuteEditor" Assembly="CuteEditor" TagPrefix="CE" %>   
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  
    5.     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
    6. <html xmlns="http://www.w3.org/1999/xhtml">   
    7. <head id="Head1" runat="server">   
    8. </head>   
    9. <body>   
    10.     <form id="Form1" runat="server">   
    11.         <CE:Editor ID="Editor1" runat="server">   
    12.         </CE:Editor>   
    13.         <input type="button" value="AddTextToEditor" onclick="addContent()" />   
    14.     </form>   
    15. </body>   
    16. </html>   
    17.   
    18. <script type="text/javascript">   
    19. var editor1=document.getElementById('<%= Editor1.ClientID %>');   
    20. function addContent()   
    21. {   
    22. editor1.SetHTML("type something");   
    23. }   
    24. </script>  

    Regards,
     
    ken
View Complete Thread