Classes
AbstractEditorAnnotationCommandCommandComponentConfiguratorContainerEditorContainerSelectionDOMImporterDocumentDocumentNodeEditAnnotationCommandEditingEventEmitterInsertInlineNodeCommandNodeIndexPropertyAnnotationPropertySelectionProseEditorScrollPaneSelectionSpellCheckCommandSurfaceTextNodeTransactionDocumentVirtualElement
Components
Modules
PropertyIndex
Class defined in model/data/PropertyIndex.js#6 inherits from
new PropertyIndex()
Constructor defined in model/data/PropertyIndex.js#8
this.get(path)
Method defined in model/data/PropertyIndex.js#21
Get all indexed nodes for a given path.
Parameters
path | Array. |
Returns
A node or an object with ids and nodes as values. |
this.getAll()
Method defined in model/data/PropertyIndex.js#30
Collects nodes recursively.
Returns
An object with ids as keys and nodes as values. |
this.select()
Method defined in model/data/PropertyIndex.js#43
Check if a node should be indexed.
Used internally only. Override this in subclasses to achieve a custom behavior.
Parameters
Node |
Returns
Boolean | true if the given node should be added to the index. |
this.create(node)
Method defined in model/data/PropertyIndex.js#55
Called when a node has been created.
Override this in subclasses for customization.
Parameters
node | Node |
this.delete()
Method defined in model/data/PropertyIndex.js#73
- Called when a node has been deleted.
- Override this in subclasses for customization.
- @private
- @param {model/data/Node} node
this.update(node)
Method defined in model/data/PropertyIndex.js#91
Called when a property has been updated.
Override this in subclasses for customization.
Parameters
node | Node |