diff --git a/assets/js/editor-new.js b/assets/js/editor-new.js index 110f22099d..e2229479b6 100644 --- a/assets/js/editor-new.js +++ b/assets/js/editor-new.js @@ -1002,7 +1002,10 @@ window.editors[this.id].previous_value = '' function submit(cm) { - if (cm.getValue() !== '') formEditor.submit() + if (cm.getValue() !== '') { + localStorage.removeItem('smde_' + mdeUniqueKey) + formEditor.submit() + } } easyMDE.codemirror.addKeyMap({