Skip to main content

combineTransactionSteps

@blockslides/core


@blockslides/core / combineTransactionSteps

Function: combineTransactionSteps()

combineTransactionSteps(oldDoc, transactions): Transform

Defined in: blockslides/packages/core/src/helpers/combineTransactionSteps.ts:11

Returns a new Transform based on all steps of the passed transactions.

Parameters

oldDoc

Node

The Prosemirror node to start from

transactions

Transaction[]

The transactions to combine

Returns

Transform

A new Transform with all steps of the passed transactions