EditorView.dispatch method
EditorView › dispatch
Official
All regular editor state updates should go through this.Signature:
dispatch(tr: Transaction): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| tr | Transaction | The transaction to dispatch. |
Returns: void
Official
Dispatch an array of transactions.Signature:
dispatch(trs: readonly Transaction[]): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| trs | readonly Transaction[] | The transactions to dispatch. |
Returns: void
Official
Dispatch one or more transaction specs.Signature:
dispatch(specs?: TransactionSpec[]): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| specs? | TransactionSpec[] | The transaction specs. |
Returns: void