# AutosaveAdapter

interface

An interface that requires the `save()` method.

Used by [`adapter`](module_autosave_autosave-Autosave.md#member-adapter).

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-autosave/src/autosave.ts#L358)

<a id="methods">

## Methods

<a id="function-save">

### `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.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-autosave/src/autosave.ts#L364)

#### Parameters

* `editor: Editor`

#### Returns

* `Promise<unknown>`

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
