isDirty

Release 2.11.0+

Returns whether the editor body has been changed.

Returns

TypeDescription
Booleantrue if there are changes

Example

if (editor.isDirty()) {
  console.log('There are unsaved changes.');
}