Classes
AbstractEditorAnnotationCommandCommandComponentConfiguratorContainerSelectionDOMImporterDocumentDocumentNodeEditAnnotationCommandEditingEventEmitterInsertInlineNodeCommandNodeIndexPropertyAnnotationPropertySelectionProseEditorScrollPaneSelectionSpellCheckCommandSurfaceTextNodeTransactionDocumentVirtualElement
Components
Modules
Transaction
Class defined in model/Transaction.js#22 inherits from
new Transaction()
Constructor defined in model/Transaction.js#27
this._recordChange(transformation)
Method defined in model/Transaction.js#106
Start a transaction to manipulate the document
Parameters
transformation | function | a function(tx) that performs actions on the transaction document tx |
Example
doc.transaction(function(tx, args) {
tx.update(...)
...
return {
selection: newSelection
}
})