Re: How to disable the button outside of the cuteeditor when html view is enabledcuteeditor using javascript

  •  12-02-2010, 12:51 AM

    Re: How to disable the button outside of the cuteeditor when html view is enabledcuteeditor using javascript

    Hi mianrizwanali,
     
    Please try the example below
     
    1. <%@ Page Language="C#" %>  
    2.   
    3. <%@ Register Namespace="CuteEditor" Assembly="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.   
    6. <html xmlns="http://www.w3.org/1999/xhtml">  
    7. <head runat="server">  
    8.     <title>Untitled Page</title>  
    9. </head>  
    10. <body>  
    11.     <form id="form1" runat="server">  
    12.         <div>  
    13.             <CE:Editor ID="Editor1" runat="server" >  
    14.             </CE:Editor>  
    15.         </div>  
    16.     </form>  
    17. </body>  
    18. </html>  
    19.   
    20. <script>  
    21. function CuteEditor_OnCommand(editor,command,ui,value)  
    22.  {  
    23.  if(command=="TabCode")  
    24.  {  
    25.     //fire when switch to html view  
    26.     alert("HTMLView");  
    27.  }  
    28.  if(command=="TabEdit")  
    29.  {  
    30.      //fire when switch back to normal view  
    31.     alert("NormalView");   
    32.  }  
    33. }  
    34. </script> 
     
    Regards,
     
    Ken
View Complete Thread