Content Block
A Node within a content block tree.
The content block tree describes the structure and contents of a content document in JSON format.
Nodes that contain children must have blockClass set to CONTAINER. Nodes that are leaves must have blockClass set to TEXT or MEDIA.
Properties
An array representing all the node's attributes
Classification of the block. The value 'CONTAINER' implies that children must be set and that textContent is the empty string ''.
Further specifies the type of block within a block class.
Must be empty if blockClass is 'MEDIA' or 'TEXT'
Further describes parts of the textContent. Such as bold or italic text.
The ContentBlockTree instance this ContentBlock belongs to.
The parent ContentBlock, or null if this ContentBlock has no parent.
Set if blockClass is "MEDIA". The hrefs may be relative or absolute. If relative, it must be resolved with a resource provider associated with the owner publication.
The text content of this block. Is always the empty string if blockClass is 'CONTAINER'. If blockClass is 'MEDIA' it represents the "title" of the media.
Functions
Fetch a Locator for this ContentBlock.