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.


  1. rangeToWrap


    The range to wrap with the element

  2. wrapperElement


    Type: Node

    The element to wrap under

  3. wrapUnderNode


    Type: Node

    The maximum node to split to wrap the element under

  4. blueprint


    Type: Blueprint

    The blueprint to execute the wrap in

  5. format


    Type: Format

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


Type: Boolean

Wether the contents of the range could be wrapped