jquerytinymcetinymce-4

How can I enable TinyMCE save button?


I added the save plugin on TinyMCE 4 but it only enables the save button when some text change in the editor. Is it possible to enable the button in any other way?

Because I do have another text area that I would like to enable the save button when the text change on it.


Solution

  • Just set the "save_enablewhendirty" property to false. Then the save button will always be enabled.

    tinyMCE.init({
        theme : "advanced",
        mode : "textareas",
        plugins : "save",
        theme_advanced_buttons3_add : "save",
        save_enablewhendirty : false,
        save_onsavecallback : "mysave"
    });