diff --git a/assets/js/editor-new.js b/assets/js/editor-new.js index 110f22099d..4d32003bff 100644 --- a/assets/js/editor-new.js +++ b/assets/js/editor-new.js @@ -1002,7 +1002,8 @@ window.editors[this.id].previous_value = '' function submit(cm) { - if (cm.getValue() !== '') formEditor.submit() + const event = new SubmitEvent('submit') + formEditor.dispatchEvent(event) } easyMDE.codemirror.addKeyMap({