Report an issue
Interface

AutosaveAdapter (autosave)

@ckeditor/ckeditor5-autosave/src/autosave

interface

An interface that requires the save() method.

Used by {module:autosave/autosave~Autosave#adapter}

Filtering

Methods

  • save( editor ) → Promise.<*>

    Method that will be called when the data changes. It should return a promise (e.g. in case of saving content to the database), so the Autosave plugin will wait for that action before removing it from pending actions.

    Parameters

    editor : Editor

    The editor instance.

    Returns

    Promise.<*>