Skip to content

API > @blocksuite/blocks > getRichTextByModel

Function: getRichTextByModel ​

getRichTextByModel(model): null | RichText

Parameters ​

ParameterType
modelBaseBlockModel< object >

Returns ​

null | RichText

Deprecated ​

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

Defined In ​

packages/blocks/src/_common/utils/query.ts:288