setContextNodeIdToSelectionCommonAncestorContainer

Type: Transform step

Deprecated!

use setContextNodeIdToSelectionAncestor with XPath

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:

Other

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