Skip to content

Instantly share code, notes, and snippets.

@fcaldarelli
Last active October 4, 2017 20:21
Show Gist options
  • Save fcaldarelli/78e6e27c2a8e974ddad30cfea8f2effd to your computer and use it in GitHub Desktop.
Save fcaldarelli/78e6e27c2a8e974ddad30cfea8f2effd to your computer and use it in GitHub Desktop.
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();
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment