Skip to content

Commit

Permalink
Issue #35: Prevent ajax serialize trigger to remove the editor (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
indigoxela authored Nov 8, 2023
1 parent 5d73278 commit 2d0c29a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/tinymce-integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@
},

detach: function (element, format, trigger) {
if (trigger == 'serialize') {
return;
}
let idSelector = '#' + element.id;
tinymce.remove(idSelector);
}
Expand Down

0 comments on commit 2d0c29a

Please sign in to comment.