/ Blockeditor / BlockModel
Search results

BlockModel API in JavaScript (ES5) Blockeditor API control

Interface for a class Block

Properties

children

BlockModel[]

Represents the child blocks of the current block. This property contains an array of block models which are considered as children of the current block, allowing for hierarchical structures.

comments

CommentModel

Specifies the settings for comments on the block contents. This property allows configuration of comment-related features for the block.

content

ContentModel[]

Specifies the content of the block, which can vary based on the block type. This property holds the actual content of the block.

cssClass

string

Specifies the CSS class applied to the block. Allows custom styling by associating one or more CSS class names with the block.

id

string

Specifies the unique identifier for the block. This property is used to uniquely identify each block.

indent

number

Specifies the indent for the block. This property is used to specify indent for each block.

isExpanded

boolean

Specifies whether the block is expanded or collapsed. This property controls the visibility of child blocks within a hierarchical structure.

type

string | BlockType

Specifies the type of the block, which can be a string or a predefined BlockType. This property determines the type of content the block holds.