I need to prompt the user if they would like to save changes when they navigate off the page without clicking save. Is there a js property on radeditor that returns if a change has been made in the content since the content was set serverside on first load? An example would be useful, thanks Adrian
The problems are:
<br> <br />'s are inconsistent between the 2
White space on one but not the other (which I can't strip out!)
Line spaces on one but not the other.
I need to do a simple string comparison to see if the user has made a change.
Any suggestions?
Adrian
0
Lini
Telerik team
answered on 28 Apr 2008, 03:22 PM
Hello Adrian,
Use .get_html(true) instead of just .get_html(). The "true" parameter will make the editor run its content filters, which are also run when the content is submitted. This way you will be able to compare the initial content with the current one and tell if there are any differences.