New Document Event

Last post 04-27-2016, 12:21 PM by dash691. 2 replies.
Sort Posts: Previous Next
  •  04-22-2016, 11:15 AM 83155

    New Document Event

    Can't seem to find a way to detect if the "New Document"  button has been clicked by the mouse. 

    Is there an event that fires that I can trap in my .net code beind page? 

     

    Thank You

     

    -dan

     

     

  •  04-22-2016, 12:05 PM 83156 in reply to 83155

    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 

  •  04-27-2016, 12:21 PM 83285 in reply to 83156

    Re: New Document Event

    Thank you Ken,

     

    I'll give it a whirl  :)

     

     

    -dan 

View as RSS news feed in XML