EditorStateSaver
fun EditorStateSaver(extensions: Extension? = null, fields: Map<String, StateField<*>>? = null): Saver<EditorState, String>
Create a Saver for EditorState that preserves the document and selection.
Parameters
extensions
Extensions to apply when restoring (must match the original state's extensions for correct behavior).
fields
Map of name → StateField for custom fields to save/restore. Only fields with serialization configured will be included.