Search results

ContentModel API in JavaScript Blockeditor API control

Interface for a class Content

Properties

content

string

Specifies the actual content of the block.

history

HistoryModel[]

Tracks modification history for the block. This property maintains an array of history entries containing user modifications.

id

string

Specifies the unique identifier for the block. It is generated automatically with a length of 10 characters.

linkSettings

LinkSettingsModel

Specifies a hyperlink associated with the block. If the block represents a link, this property holds the URL.

styles

StyleModel

Specifies style attributes for the block. This property is an object of StyleModel instances defining text formatting options.

type

ContentType

Defines the type of content for the block. It can be text, link, code, date, equation, emoji, mention, or label.