replace-node

How to get replace-node

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

Removes a node and its descendants from the document, inserting a new structure in its place.

Imported operation data

Name Type Description
contextNodeId NodeId

The node to replace

replacementNodeStructure StencilJsonML

A stencil describing the structure to be inserted in place of the removed node. This stencil may mention the selection.

[model] Object

Model to be bound to the stencil after insertion.

[overrideRange] OverrideRange

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

Was this page helpful?