Whenever textarea is replaced by TinyMCE, at that time it will hidden and TinyMCE editor which is an iframe is display in place of this.
When we make standard form submission then it is handled by TinyMce. But in case of Ajax form submission,we have to do it manually and for this we have to call the triggerSave() before we submit a form.
tinyMCE.triggerSave();
Form submission is like:-
tinymce.init({
selector: "textarea",
setup: function (editor) {
editor.on('change', function () {
editor.save();
});
}
});
The textarea elements will be kept up to date automatically.
0 Comment(s)