I'm using the jQuery adaptor to call CKeditor...
I'm trying to implement this solution here to check and alert when a form has pending changes...
http://misterdai.wordpress.com/2010/06/04/jquery-form-changed-warning/
But I'm getting an extra carriage return in my ckeditor fields...
alert( 'Intial:' + $(this).data('initialForm') + '\n\n\nSerialized:' + ($(this).serialize()) );
InternalNotes is one of my CKEditor fields.
Initial: internalNotes=%3Cp%3E%0D%0A%09b%3C%2Fp%3E
Serialized: internalNotes=%3Cp%3E%0D%0A%09b%3C%2Fp%3E%0D%0A
This is the result on page load - without any interaction in the fields. I load the page then attempt to close it which kicks off the alert...
Any suggestions on how to fix this would be appreciated!
Jim