setContextNodeIdToDocumentElementOfDocument

Type: Transform step

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

Example:

Other

"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

  1. documentId

Exported operation data

  1. contextNodeId

    Type: NodeId