Hi,
I need to know the status of the text inside FCKeditor, to allow the user to post the changes.
The only thing I found is to compare the content of the editor with the underlying INPUT value (produced automaticaly by FCKeditor). Since the editor puts many marks and changes the case, I have to check with replacing them.
Eg: if (frames[1].objContent.DOM.body.innerHTML.toUpperCase( ).replace(/\r\n/g,"") == document.forms.form1.editor1.value.toUpperCase( ).replace(/\"/g,"")) {....}
This is not safe, since I don't know all the syntax peculiarities etc of the editor.
Is it another way? (event....)
Regards,
PS The last two versions are great, espacialy the anchor/URL options. Keep up the good work
I need to know the status of the text inside FCKeditor, to allow the user to post the changes.
The only thing I found is to compare the content of the editor with the underlying INPUT value (produced automaticaly by FCKeditor). Since the editor puts many marks and changes the case, I have to check with replacing them.
Eg: if (frames[1].objContent.DOM.body.innerHTML.toUpperCase( ).replace(/\r\n/g,"") == document.forms.form1.editor1.value.toUpperCase( ).replace(/\"/g,"")) {....}
This is not safe, since I don't know all the syntax peculiarities etc of the editor.
Is it another way? (event....)
Regards,
PS The last two versions are great, espacialy the anchor/URL options. Keep up the good work
RE: Change status of FCKeditor
Just a thought, though I am not sure if there is an undo limit... (if there is, they could theoretically pass the limit and undo all changes, and they'd have a disabled undo button and unsaved changes.)