Hi
I was wondering if there was an easy way to check if the user had changed any content when they leave my editor page so that I can prompt them to save if they have?
Thanks in advance
Mark
I was wondering if there was an easy way to check if the user had changed any content when they leave my editor page so that I can prompt them to save if they have?
Thanks in advance
Mark
RE: Prompt user to save if content has changed?
Re: Prompt user to save if content has changed?
I have not found any included functionality, but I am creating it....
I am using the JS replace textarea...
I am using a JS function onLoad to md5 the content of the textarea, and another JS function onUnload to md5 the textarea. If the md5's are different, I am sending a JS alert to "OK" to save, or "Cancel" to discard.
Hope this helps
Re: Prompt user to save if content has changed?
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn