Node - doc

Purpose

The doc node is the root container node representing a document.

Example

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 { "version": 1, "type": "doc", "content": [ { "type": "paragraph", "content": [ { "type": "text", "text": "Hello world" } ] } ] }

Fields

NameRequiredTypeValue
typestring"doc"
contentarrayAn array of zero or more nodes.
versioninteger1

Content

content takes zero or more top-level block nodes.

Version

version represents the version of the ADF specification used in the document.

Rate this page: