Sign up (with export icon)

AutosaveAdapter

Api-interface icon interface

An interface that requires the save() method.

Used by adapter.

Methods

  • Chevron-right icon

    save( editor ) → Promise<unknown>

    The 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

    Returns

    Promise<unknown>