Check the editor body for any changes.
Return:
Example:
if(editor.isDirty()) { console.log('There are changes.'); };