Skip to content

Documentation for SoEditor 1.2.1

Saving and dirty state

Use /cms/optional and configure save.adapter.save. It receives canonical source, a revision token and an AbortSignal. Return { status: 'saved', revisionToken } on success, throw on failure, or return status: 'conflict' for a server revision conflict handled by the host.

Call save() to save and retrySave() to retry. Read dirty and request state through save.onStateChange. Edits made while a request is pending remain dirty after an older payload is saved.

Autosave is opt-in and disabled in this demo. Destruction cancels owned save work. Try failure and retry.

Next steps

Examples · Configuration · Troubleshooting

HTML editing for website CMS · MIT