Search results

ContentModel API in React Blockeditor API component

Interface for a class Content

Properties

content

string

Specifies the actual content of the block.

id

string

Specifies the unique identifier for the block. For standard types, this acts as the unique identifier of the content. For special types like Label or Mention, this should be set to the corresponding item ID from the datasource to render the resolved content.

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, mention, or label.