Type: Function

Move the start and end of the range towards containerNode, as much as possible. This can be used to 'extend' the range to contain as much element boundaries as possible.

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


  1. selectionRange


    Type: Range

    The starting range, will be mutated.

  2. blueprint


    Type: Blueprint

  3. format


    Type: Format

  4. containerNode


    Type: Node

    The maximum node to extend the selection to. The selection will never fully contain this node.

  5. options


    Type: Object