How do I turn on autosave for TinyMCE in Mezzanine?

193 Views Asked by At

I'd like to enable autosave in my Mezzanine content authoring interface. It sounds like there's a TinyMCE plugin called AutoSave that does this -- how do I enable it for TinyMCE through the Mezzanine setup?

1

There are 1 best solutions below

3
On

I created my own autosave plugin for TinyMCE, I can't share the code due to office rules but what you need to do is use JavaScript or jQuery and set a particular configurable interval on which an AJAX call is made to the server by sending the content of TinyMCE (using tinyMCE.activeEditor.getContent) and save it at server side.

You can also add a button for this so that before making an AJAX call just check the status of button whether it's enabled or not.