expandRangeToFullyContainNodes

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.

Arguments

  1. selectionRange

    (Required)

    Type: Range

    The starting range, will be mutated.

  2. blueprint

    (Required)

    Type: Blueprint

  3. format

    (Required)

    Type: Format

  4. containerNode

    (Required)

    Type: Node

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

  5. options

    (Optional)

    Type: Object

    Properties