set Cursor To First Or Last Text Position
Type: Function
Sets the given range to the first or last position in contextNode where text can be inserted.
Clears selection when there is no such valid position in the given node.
Arguments
range
(Required)
Type: Range
The range to change
context
Node (Required)
Type: Node
The node to place the selection in
blueprint
(Required)
Type: Blueprint
The blueprint to use for current relations
format
(Required)
Type: Format
The format holding the rules of valid selection positions
is
Backwards (Required)
Type: Boolean
Whether to start searching from the end or from the start
Returns
Type: Boolean
Clears selection when there is no such valid position in the given node and always return true