How to get insert-before-selection

Depend on fontoxml-base-flow to make this operation available.

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

Imported operation data

Name Type Description
contextNodeId NodeId

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

childNodeStructure StencilJsonML

A stencil describing the structure to be inserted.

[model] Object

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

[overrideRange] OverrideRange

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

Was this page helpful?