insert-next-to-context-node

Type: Operation

Insert the given childNodeStructure after or before the node with the given contextNodeId based on the given side

Imported operation data

  1. contextNodeId

    (Required)

    Type: NodeId

    The id of the node after which the new structure is inserted.

  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

  5. side

    (Required)

    Type: String

    Either 'before' or 'after', to indicate where the childNodeStructure will be inserted in relation to the context node.