OverrideRange

Type: Object

A range object using node Id's instead of nodes for the start and end containers. Used for overriding the affected range of an operation which usually is the selection range.

Properties

Name Type Description
endContainerNodeId NodeId

The end container of the range. Should always be after the start container, in DOM order.

endOffset Number

Index among the end container's childNodes or characters (if it is a text node) at which to end the selection.

selectionIsBackwards Boolean

Use this option to set the direction of the selection explicitly. Note that using this property does not influence the fact that the start position should be before the end position.

startContainerNodeId NodeId

The start container of the range. Should always be before the end container, in document order.

startOffset Number

Index among the start container's childNodes or characters (if it is a text node) at which to start the selection.