Hi SJochums,
Then I suggest you remove the undo/redo button from the toolbar and create your custom button to achieve the undo/redo command, so you can fire another command after them. Like the example below.
- <%@ Page Language="C#" %>
-
- <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
- <script runat="server">
- protected override void OnLoad(EventArgs e)
- {
- CuteEditor.ToolControl tc = editor1.ToolControls["mybutton"];
- if (tc != null)
- {
- System.Web.UI.WebControls.Image Image1 = new System.Web.UI.WebControls.Image();
- Image1.ImageUrl = "http://cutesoft.net/CuteSoft_Client/CuteEditor/Images/undo.gif";
- Image1.CssClass = "CuteEditorButton";
- Image1.Attributes["onclick"] = "CuteEditor_GetEditor(this).ExecCommand('Undo');alert('fire after undo!');";
- tc.Control.Controls.Add(Image1);
- }
- base.OnLoad(e);
- }
- </script>
-
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head id="Head1" runat="server">
- <title>example</title>
- </head>
- <body>
- <form id="form1" runat="server">
- <CE:Editor ID="editor1" runat="server" TemplateItemList="[Bold,Italic]/[mybutton]" >
- </CE:Editor>
- </form>
- </body>
- </html>
Regards,
Ken