Skip to content

Commit

Permalink
fix: disable easymde autosave (comses#771)
Browse files Browse the repository at this point in the history
wagtail admin textarea ids are shared between pages so this causes text
to be incorrectly cached

resolves comses/planning#279
  • Loading branch information
sgfost authored Oct 24, 2024
1 parent 09178b4 commit 108230c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions django/core/static/js/mde.attach.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ function mdeAttach(id) {
var mde = new EasyMDE({
element: document.getElementById(id),
autosave: {
enabled: true,
delay: 3000,
submit_delay: 10000,
uniqueId: id,
enabled: false,
},
toolbar: [
"bold", "italic", "heading", "|",
Expand Down

0 comments on commit 108230c

Please sign in to comment.