Skip to content

Editor.transaction method

Editor › transaction

Official

Apply a transaction to the editor.

Signature:

transaction(tx: EditorTransaction, origin?: string | undefined): void

Parameters:

ParameterTypeDescription
txEditorTransactionThe editor transaction to apply.
origin?string | undefinedThe user event that triggered the transaction.

Returns: void

Since: 0.13.0