TinyMCE — Form Sync
Keep the underlying textarea updated so a native form still carries the value.
FormData from the real controls
(submit to inspect)
Important JavaScript
tinymce.init({
selector: "#body",
setup: function (editor) {
editor.on("change keyup", function () {
editor.save(); // writes HTML back into the textarea
});
},
});
// On submit, also call tinymce.triggerSave();