Skip to content

EditorView.dispatch method

EditorView › dispatch

Official

All regular editor state updates should go through this.

Signature:

dispatch(tr: Transaction): void

Parameters:

ParameterTypeDescription
trTransactionThe transaction to dispatch.

Returns: void


Official

Dispatch an array of transactions.

Signature:

dispatch(trs: readonly Transaction[]): void

Parameters:

ParameterTypeDescription
trsreadonly Transaction[]The transactions to dispatch.

Returns: void


Official

Dispatch one or more transaction specs.

Signature:

dispatch(specs?: TransactionSpec[]): void

Parameters:

ParameterTypeDescription
specs?TransactionSpec[]The transaction specs.

Returns: void