setCursorToFirstOrLastTextPosition

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

  1. range

    (Required)

    The range to change

  2. contextNode

    (Required)

    Type: Node

    The node to place the selection in

  3. blueprint

    (Required)

    Type: Blueprint

    The blueprint to use for current relations

  4. format

    (Required)

    Type: Format

    The format holding the rules of valid selection positions

  5. isBackwards

    (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