fn
applyTransaction
testedProduce the next editor state from a transaction. Stored marks are kept when explicitly set, cleared on any content change, and otherwise preserved.
Signature
ts
export function applyTransaction(state: EditorState, tr: Transaction): EditorState{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
state | EditorState | — |
tr | Transaction | — |
Returns
EditorState