Skip to content

Commit

Permalink
Vide le stockage local lors de l'envoi avec Ctrl+Entrée
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud-D committed Jun 2, 2022
1 parent 36fdfd3 commit 4659923
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/js/editor-new.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 4659923

Please sign in to comment.