Hi rajmohanp,
Please try the example below
- <%@ Page Language="C#" %>
-
- <%@ Register Namespace="CuteEditor" Assembly="CuteEditor" TagPrefix="CE" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <title>Untitled Page</title>
- </head>
-
- <script runat="server">
- protected override void OnLoad(EventArgs e)
- {
- editor1.Text = "please try change me";
- base.OnLoad(e);
- }
- </script>
-
- <body>
- <form id="form1" runat="server">
- <div>
- <CE:Editor ID="editor1" runat="server" ShowBottomBar="false" EnableContextMenu="false">
- </CE:Editor>
- </div>
- </form>
- </body>
- </html>
-
- <script>
-
- function disableBoardEvent(oEvent)
- {
- oEvent.preventDefault();
- }
-
- function CuteEditor_OnInitialized(editor)
- {
- var editwin = editor.GetWindow();
- var editdoc = editor.GetDocument();
- if(window.addEventListener)
- {
- editdoc.addEventListener("keypress",disableBoardEvent,"false");
- }
-
- editdoc.body.onkeydown=function()
- {
- return false;
- }
-
-
- }
-
- </script>
Regards,
ken