![]()
Clears the window's selection.
Arguments:
|
code » | |||||
Create a new range wrapper that represents a caret at the given node,
accounting for the given offset. This always creates a TextRange, regardless
of whether node is an image node or other control range type node.
Arguments:
Returns: !goog.dom.AbstractRange
A range wrapper object.
|
code » | |||||
Create a new range wrapper from the given browser range object.
Arguments:
Returns: !goog.dom.AbstractRange
A range wrapper object.
|
code » | |||||
Create a new range wrapper from the given browser selection object. Note
that this object does not auto-update if the user changes their selection and
should be used as a snapshot.
Arguments:
Returns: ?goog.dom.AbstractRange
A range wrapper object or null if there
was an error.
|
code » | |||||
Create a new range wrapper that selects the given node's text.
Arguments:
Returns: !goog.dom.AbstractRange
A range wrapper object.
|
code » | |||||
![]()
Create a new range wrapper that selects the area between the given nodes,
accounting for the given offsets.
Arguments:
Returns: !goog.dom.AbstractRange
A range wrapper object.
|
code » | |||||
Create a new selection from the given browser window's current selection.
Note that this object does not auto-update if the user changes their
selection and should be used as a snapshot.
Arguments:
Returns: ?goog.dom.AbstractRange
A range wrapper object, or null if there
was an error.
|
code » | |||||
Tests if the window has a selection.
Arguments:
Returns: boolean
Whether the window has a selection.
|
code » | |||||
Returns whether the focus position occurs before the anchor position.
|
code » |