FabrizioCaldarelli
10/4/2017 - 8:20 PM

keep sync TinyMCE content with hidden textarea

When you include TinyMCE in form, you have to sync TinyMCE content with hidden textarea, because it won't be done automatically

tinymce.init({
    selector: "textarea",
    setup: function (editor) {
        editor.on('change', function () {
            editor.save();
        });
    }
});