TinyMCE:API/tinymce.Editor/isDirty
From Moxiecode Documentation Wiki
Contents |
[edit]
Method: isDirty
[edit]
Summary
Returns true/false if the editor is dirty or not. It will get dirty if the user has made modifications to the contents.
There is no method for changing the dirty state. Instead, you can directly set the isNotDirty property of the editor.
[edit]
Syntax
<bool> isDirty()
[edit]
Returns
True/false if the editor is dirty or not. It will get dirty if the user has made modifications to the contents.
[edit]
Examples
if (tinyMCE.activeEditor.isDirty())
alert("You must save your contents.");
