Transaction
Class defined in model/Transaction.js#22 inherits from

Start a transaction to manipulate the document

Parameters
transformationfunction

a function(tx) that performs actions on the transaction document tx

Example
doc.transaction(function(tx, args) {
  tx.update(...)
  ...
  return {
    selection: newSelection
  }
})