Classes
AbstractEditorAnnotationCommandCommandComponentConfiguratorContainerEditorContainerSelectionDOMImporterDocumentDocumentNodeEditAnnotationCommandEditingEventEmitterInsertInlineNodeCommandNodeIndexPropertyAnnotationPropertySelectionProseEditorScrollPaneSelectionSpellCheckCommandSurfaceTextNodeTransactionDocumentVirtualElement
Components
Modules
NodeIndex
Abstract Class defined in model/data/NodeIndex.js#12
Index for Nodes.
Node indexes are first-class citizens in model/data/Data. I.e., they are updated after each operation, and before any other listener is notified.
this.select()
Method defined in model/data/NodeIndex.js#23
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/NodeIndex.js#32
Called when a node has been created.
Parameters
node | Node |
this.delete(node)
Method defined in model/data/NodeIndex.js#41
Called when a node has been deleted.
Parameters
node | Node |
this.update(node)
Method defined in model/data/NodeIndex.js#55
Called when a property has been updated.
Parameters
node | Node |
this.reset()
Method defined in model/data/NodeIndex.js#64
Reset the index using a Data instance.
this.clone()
Method defined in model/data/NodeIndex.js#74
Clone this index.
Returns
A cloned NodeIndex. |
NodeIndex.create(prototype)
Static Method defined in model/data/NodeIndex.js#99
Create a new NodeIndex using the given prototype as mixin.
Parameters
prototype | Object |
Returns
NodeIndex | A customized NodeIndex. |
NodeIndex.filterByType(type)
Static Method defined in model/data/NodeIndex.js#113
Create a filter to filter nodes by type.
Parameters
type | String |
Returns
function |