Hi JavedBoqo,
please try the example below
- <?php include_once("cuteeditor_files/include_CuteEditor.php") ; ?>
- <html>
- <head>
- </head>
- <body>
-
- <form name="theForm" method="post" ID="Form1">
-
- <?php
- $editor=new CuteEditor();
- $editor->ID="Editor1";
- $editor->Text="Type here";
- $editor->Draw();
- $editor=null;
- ?>
- </form>
- </body>
- </html>
- <script>
-
- function CuteEditor_OnInitialized(editor)
- {
- var editdoc = editor.GetDocument();
-
- if(document.attachEvent)
- {
-
- editdoc.onfocusout=function()
- {
- alert("onblur");
- }
- }
- else
- {
-
- editdoc.body.addEventListener("blur",focusOut,false);
-
- editdoc.addEventListener("blur",focusOut,false);
- }
- }
-
- function focusOut()
- {
- alert("onblur not ie");
- }
- </script>
Regards,
ken