Hi,
Please try the example page below, does it work for you?
- <%@ 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" UseStandardDialog="true">
- </CE:Editor>
- <input type="button" value="custom command" onclick="myCommand()" />
- </form>
- </body>
- </html>
-
- <script type="text/javascript">
- function myCommand()
- {
- var editor1 = document.getElementById('<%= Editor1.ClientID%>');
- editor1.ExecCommand("InsertDocument");
- }
- </script>
Regards,
Ken