Hi cabolet,
Please try the example page below, it shows you how to check the editor content has been changed.
-
- <html>
- <head>
- <title>ASP Editor Demo</title>
-
- </head>
- <body>
-
- <form name="theForm">
- <%
- Dim editor
- Set editor = New CuteEditor
- editor.Text="some content"
- editor.ID = "Editor1"
- editor.Draw()
- %>
- <input type="button" value="check is dirty" onclick="checkIsDirty()" />
- </form>
- </body>
- </html>
- <script>
- var editor1 = document.getElementById('CE_Editor1_ID');
- function checkIsDirty()
- {
- if(editor1.IsDirty())
- {
- alert("is dirty");
- }
- }
- function CuteEditor_OnChange(editor)
- {
- checkIsDirty();
- }
- </script>
Regards,
Ken