insert-before-selection

Type: Operation

Insert a structure before the current selection, as a child of the node identified with contextNodeId

Imported operation data

  1. contextNodeId

    (Required)

    Type: NodeId

    The id of the node which is to become the parent of the new structure.

  2. childNodeStructure

    (Required)

    A stencil describing the structure to be inserted.

  3. [model]

    (Required)

    Type: Object

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

  4. [overrideRange]

    (Required)

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