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
- <%@ Page Language="C#" ValidateRequest="false" %>
-
- <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
- <html>
- <head>
- <title>example </title>
- </head>
- <body>
- <form id="Form1" runat="server">
- <CE:Editor ID="editor1" runat="server" Width="1000">
- </CE:Editor>
- </form>
- </body>
- </html>
- <script type="text/javascript">
- function CuteEditor_OnCommand(editor,command,ui,value)
- {
-
- if(command=="New")
- {
- alert("you clicked on the new button");
- }
- }
- </script>
Regards,
Ken