Hey guys!
I need to handle the change event, when the textarea of CE gets an input (keydown). A flag should be set and triggers a notification which informs the user about unsaved changes.
I found the follwing code snippets, but they dont work for me. I dont know why. Or do i misuse it?
editor.ID = "rtfDocumentEditor"
function CuteEditor_OnChange(rtfDocumentEditor) {
checkIsDirty();
}
var rtfDocumentEditor = document.getElementById("<% = rtfDocumentEditor.ClientID %>");
function checkIsDirty() {
if (rtfDocumentEditor.IsDirty() == true) {
alert("Unsaved Changes");
}
}