I
EditorEvents
testedEditor event map. A `type` (not `interface`) so it satisfies the `Record<string, ...>` constraint of {@link PubSub}.
Signature
ts
interface EditorEventsProperties
| Property | Type | Description |
|---|---|---|
transaction | (tr: Transaction, next: EditorState, prev: EditorState) => void | Fired for every applied transaction (local, undo/redo, or remote). |
docChange | (next: EditorState, prev: EditorState) => void | Fired when the document changed. |
selectionChange | (next: EditorState, prev: EditorState) => void | Fired when the selection changed. |