Classes
AbstractEditorAnnotationCommandCommandComponentConfiguratorContainerEditorContainerSelectionDOMImporterDocumentDocumentNodeEditAnnotationCommandEditingEventEmitterInsertInlineNodeCommandNodeIndexPropertyAnnotationPropertySelectionProseEditorScrollPaneSelectionSpellCheckCommandSurfaceTextNodeTransactionDocumentVirtualElement
Components
Modules
Selection
Class defined in model/Selection.js#7
A document selection. Refers to a Substance document model, not to the DOM.
new Selection()
Constructor defined in model/Selection.js#9
this.getDocument()
Method defined in model/Selection.js#31
Returns
Document | The attached document instance |
this.attach(doc)
Method defined in model/Selection.js#50
Attach document to the selection.
Parameters
doc | Document | document to attach |
Returns
this |
this.isNull()
Method defined in model/Selection.js#58
Returns
Boolean | true when selection is null. |
this.isPropertySelection()
Method defined in model/Selection.js#63
Returns
Boolean | true for property selections |
this.isContainerSelection()
Method defined in model/Selection.js#68
Returns
Boolean | true if selection is a {@link model/ContainerSelection} |
this.isNodeSelection()
Method defined in model/Selection.js#73
Returns
Boolean | true if selection is a {@link model/NodeSelection} |
this.isCollapsed()
Method defined in model/Selection.js#80
Returns
Boolean | true when selection is collapsed |
this.isReverse()
Method defined in model/Selection.js#85
Returns
Boolean | true if startOffset < endOffset |
this.equals()
Method defined in model/Selection.js#98
Returns
Boolean | true if selection equals |
this.toString()
Method defined in model/Selection.js#117
Returns
String | This selection as human readable string. |
this.toJSON()
Method defined in model/Selection.js#127
Convert container selection to JSON.
Returns
Object |
this.getFragments()
Method defined in model/Selection.js#137
Get selection fragments for this selection.
A selection fragment is bound to a single property.
Returns
Selection.Fragment[] |
nullSelection
Property defined in model/Selection.js#182
We use a singleton to represent NullSelections.