Type: Function

Returns a copy of the given range. If the given range is collapsed and in the middle of a word, the copy will be expanded to surround the complete word. If the given range was not collapsed or bordered on whitespace, the returned range will be the same as the input (but still a copy).

Refer to baseFlowUtils for more information on how to import and use this function.


  1. range


    The input range

  2. blueprint


    Type: Blueprint

    The blueprint in which to consider the range

  3. format


    Type: Format

    The format

  4. allowWordEdge


    Type: Boolean

    True if positions on word edges are allowed


The resulting range