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

endContainerNodeId

Type: NodeId

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

endOffset

Type: Number

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

selectionIsBackwards

Type: 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

Type: NodeId

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

startOffset

Type: Number

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