Skip to content

BlockSuite API Documentation / @blocksuite/affine-rich-text / getRichTextByModel

Function: getRichTextByModel()

getRichTextByModel(editorHost, id): null | RichText

Defined in: packages/affine/rich-text/src/dom.ts:21

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

Parameters

editorHost

EditorHost

id

string

Returns

null | RichText