Skip to content

Commit

Permalink
Répare le bouton « Sauvegarder et continuer » (#5986)
Browse files Browse the repository at this point in the history
  • Loading branch information
Situphen committed Nov 8, 2020
1 parent 99f7844 commit 11bed3d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 0 additions & 5 deletions assets/js/editor-button-save.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ function toggleSubmitButtonsState() {
})
}
function saveFormNoRedirect($form, $saveButton) {
// force sync of technical textarea and form textarea
const codeMirrorTextarea = $('.textarea-multivers')
if (codeMirrorTextarea.length) {
window.editors.id_text.codemirror.save()
}
const data = $form.serialize()
data.preview = undefined
toggleSubmitButtonsState()
Expand Down
1 change: 1 addition & 0 deletions assets/js/editor-new.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@
var easyMDE = new EasyMDE({
autoDownloadFontAwesome: false,
element: this,
forceSync: true,
autosave: {
enabled: true,
uniqueId: mdeUniqueKey,
Expand Down

0 comments on commit 11bed3d

Please sign in to comment.