R
I

EditorEvents

tested

Editor event map. A `type` (not `interface`) so it satisfies the `Record<string, ...>` constraint of {@link PubSub}.

Signature

ts
interface EditorEvents

Properties

PropertyTypeDescription
transaction(tr: Transaction, next: EditorState, prev: EditorState) => voidFired for every applied transaction (local, undo/redo, or remote).
docChange(next: EditorState, prev: EditorState) => voidFired when the document changed.
selectionChange(next: EditorState, prev: EditorState) => voidFired when the selection changed.