This plugin adds a save button to TinyMCE this save button will submit the form that the editor is within.
Installation Instructions
- Add plugin to TinyMCE plugin option list example: plugins : "save".
- Add the save and cancel button names to button list, example: theme_advanced_buttons3_add : "save,cancel".
Plugin options
Name | Summary |
---|---|
[save_enablewhendirty] | If you set this option to true, the edit button will be disabled/dimmed until modifications are made. This is disabled by default. |
[save_onsavecallback] | This option enables you to add a custom function to be called when the save button/command is invoked. This is not used by default. |
[save_oncancelcallback] | This option enabled you to add a custom function to be called when the cancel button/command is invoked. This is not used by default. |
Initialization Example
tinyMCE.init({
theme : "advanced",
mode : "textareas",
plugins : "save",
theme_advanced_buttons3_add : "save",
save_enablewhendirty : true,
save_onsavecallback : "mysave"
});
Was this article helpful? Yes - No
Well, that's awkward . Would you mind opening an issue or helping us out?
Thanks for the feedback!
Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.