setContextNodeIdToSelectionCommonAncestorContainer

How to get setContextNodeIdToSelectionCommonAncestorContainer

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

Deprecated

This API has been deprecated.

Set the contextNodeId stepData property to the common ancestor container of the selection. Use this to make a non contextual version of contextual operations like so:

Example:

"do-something-non-contextual": {
  "label": "Do Something non contextual(r)",
   "steps": [
     {
       "type": "transform/setContextNodeIdToSelectionCommonAncestorContainer"
     },
     {
       "type": "operations/do-something-contextual"
     }
   ]
}
Was this page helpful?