Type: Operation

Wrap the given childNodeStructure around the node with the given contextNodeId at the specified transclude gap in the stencil

Imported operation data

  1. contextNodeId


    Type: NodeId

    The id of the node around which the new structure is wrapped.

  2. childNodeStructure


    A stencil describing the structure to wrap the context node in. Should contain a gap named transclude with the multiple property set to true to indicate where the referenced node should appear. The selection gap may be used to set the selection in the new structure.

  3. model


    Type: Object

    (Optional) model to be bound to the stencil before wrapping.

  4. overrideRange


    The range to set the selection in as defined by the stencil instead of the selectionRange