Re: New Document Event

  •  04-22-2016, 12:05 PM

    Re: New Document Event

    hi,

     

    please try the example page  below, it shows you how to catch the new button command. you can find the full command names at http://cutesoft.net/developer+guide/scr/Toolbar_Customization.htm

     

    1. <%@ Page Language="C#" ValidateRequest="false" %>  
    2.   
    3. <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>  
    4. <html>  
    5. <head>  
    6.     <title>example </title>  
    7. </head>  
    8. <body>  
    9.     <form id="Form1" runat="server">  
    10.         <CE:Editor ID="editor1" runat="server" Width="1000">  
    11.         </CE:Editor>  
    12.     </form>  
    13. </body>  
    14. </html>  
    15. <script type="text/javascript">  
    16. function CuteEditor_OnCommand(editor,command,ui,value)  
    17.  {  
    18.     //handle the command by yourself  
    19.    if(command=="New")  
    20.    {  
    21.     alert("you clicked on the new button");  
    22.    }  
    23. }  
    24. </script>  
     

    Regards,

     

    Ken 

View Complete Thread