wrapInMultipleElements

Type: Function

Attempt to wrap a range under a given node by placing the range contents under the wrapperElement

Refer to primitives for more information on how to include this primitive.

Arguments

  1. rangeToWrap

    (Required)

    The range to wrap with the element

  2. wrapperElement

    (Required)

    Type: Node

    The element to wrap under

  3. wrapUnderNode

    (Required)

    Type: Node

    The maximum node to split to wrap the element under

  4. blueprint

    (Required)

    Type: Blueprint

    The blueprint to execute the wrap in

  5. format

    (Required)

    Type: Format

    The format to use for detecting splittable nodes and validating the outcome

Returns

Type: Boolean

Wether the contents of the range could be wrapped