diff --git a/src/modules/Editor.ts b/src/modules/Editor.ts index de0be4a..ccde86c 100644 --- a/src/modules/Editor.ts +++ b/src/modules/Editor.ts @@ -200,6 +200,8 @@ export class Editor { }; triggerOnChange = (): void => { + console.log('trigger on change', this.isEmpty, this.getIsEmpty()); + if (this.isEmpty !== this.getIsEmpty()) this.setIsEmpty(this.isEmpty); if (this.getEditing() && !this.getChanged()) this.setChanged(true); };