setContextNodeIdToDocumentElementOfDocument

How to get setContextNodeIdToDocumentElementOfDocument

Depend on fontoxml-documents to make this transform available.

Set the contextNodeId step data to the NodeId of the document element for the given document.

Example:

"set-cursor-in-document": {
  "label": "Set cursor in document",
  "steps": [
    {
      "type": "transform/setContextNodeIdToDocumentElementOfDocument",
      "data": {
        "documentId": "{{documentId}}"
      }
    },
    {
      "type": "operation/set-cursor-to-first-text-position"
    }
  ]
}

Imported operation data

Name Type Description
documentId DocumentId

Exported operation data

Name Type Description
contextNodeId NodeId
Was this page helpful?