Type: Function

Attempts to wrap the content of the given range in the given element.

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


  1. rangeToWrap


    The range to wrap

  2. wrapperElement


    Type: Element

    The element in which to wrap, should be empty

  3. wrapUnderNode


    Type: Node | NULL

    If not null, the wrapping will not be applied above this node

  4. blueprint


    Type: Blueprint

    The blueprint in which to perform the operation

  5. format


    Type: Format

    The format used to validate the resul

  6. referenceNode


    Type: Node | NULL

    The node before which to place the nodes, or null to place the nodes at the end of wrapperElement


Type: Boolean

Whether the operation was successful