Skip to content

BlockSuite API Documentation / @blocksuite/blocks / getRichTextByModel

Function: getRichTextByModel()

getRichTextByModel(editorHost, id): RichText | null

In most cases, you not need RichText, you can use getInlineEditorByModel instead.

Parameters

editorHost: EditorHost

id: string

Returns

RichText | null

Defined in

packages/affine/components/dist/rich-text/dom.d.ts:8