Documentation

Autosave

autosave.before.send

Arguments
xhr ObjectXMLHttpRequest object

Occurs before sending the autosave request to the server.
This event has event.stop method.

autosave.send

Arguments
response ObjectJSON response

Occurs whenever the autosave request is sent.

autosave.error

Arguments
response ObjectJSON response

Occurs when the autosave request fails.

Here is the example of JSON error response:

{
    "error": true,
    "message": "Something went wrong..."
}