Take a look at our new Article and Redactor X editors.

Autosave content

This example shows how to save the content with each change automatically.


    <!--element -->
    <textarea id="content"></textarea>
    <!-- call -->
    $R('#content', {
        autosave: '/your-autosave-server-script/',
        callbacks: {
            autosave: function(name, data, response)
                // name - name of textarea or the value of `autosaveName` option
                // data - an object with the data sent to the server
                // response -  the server JSON response