isDirty
Release 2.11.0+
Returns whether the editor body has been changed.
Returns
| Type | Description |
|---|---|
| Boolean | true if there are changes |
Example
if (editor.isDirty()) {
console.log('There are unsaved changes.');
}
Release 2.11.0+
Returns whether the editor body has been changed.
| Type | Description |
|---|---|
| Boolean | true if there are changes |
if (editor.isDirty()) {
console.log('There are unsaved changes.');
}