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.
[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.");
