Hi
gurpreet,
Can you explain your issue on detail?
Can you show me the steps to reproduce this issue?
Please try 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)
- {
- Editor1.Text = "<table border='0' width='496'><tr><td> </td><td> </td><td> </td><td> </td> </tr></table>"; ;
- base.OnLoad(e);
- }
- </script>
-
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <title>Untitled Page</title>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <CE:Editor ID="Editor1" runat="server">
- </CE:Editor>
- <input type="button" value="Insert" onclick="insertText()" />
- </div>
- </form>
- </body>
- </html>
-
- <script>
- function insertText()
- {
- var editor1=document.getElementById("<%= Editor1.ClientID %>");
- var text = '<input id="first_name" value="[FirstName]" type="input" name="first_name" />';
- editor1.ExecCommand("PasteHTML", false, text);
- }
- </script>
Regards,
ken