Re: how to disable the editor and hide the tool bar by javascript?

  •  05-04-2010, 1:47 AM

    Re: how to disable the editor and hide the tool bar by javascript?

    Hi wolf11th,
     
    1. Can not disable but you can hide it. example:
     
    1. <%@ Page Language="C#" %>   
    2.   
    3. <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>   
    4. <html>   
    5. <head>   
    6. </head>   
    7. <body>   
    8.     <form id="Form1" runat="server">   
    9.         <CE:Editor ID="editor1" runat="server">   
    10.         </CE:Editor>   
    11.         <input type="button" value="hide" onclick="hide()" />   
    12.     </form>   
    13. </body>   
    14. </html>   
    15.   
    16. <script>   
    17. function hide()   
    18. {   
    19. var editor1=document.getElementById("<%= editor1.ClientID %>");   
    20. editor1.style.visibility="hidden";   
    21. }   
    22.   
    23. </script>  

    2. For now edtior does not support hide the toolbar by javascript.
     
    Regards,
     
    ken
View Complete Thread