Skip to content

EditorView.dispatch method

EditorView › dispatch

Official

All regular editor state updates should go through this.

Signature:

dispatch(tr: Transaction): void

Parameters:

Parameter Type Description
tr Transaction The transaction to dispatch.

Returns: void


Official

Dispatch an array of transactions.

Signature:

dispatch(trs: readonly Transaction[]): void

Parameters:

Parameter Type Description
trs readonly Transaction[] The transactions to dispatch.

Returns: void


Official

Dispatch one or more transaction specs.

Signature:

dispatch(specs?: TransactionSpec[]): void

Parameters:

Parameter Type Description
specs? TransactionSpec[] The transaction specs.

Returns: void