API > @blocksuite/blocks > getRichTextByModel
Function: getRichTextByModel ​
getRichTextByModel(
model
):null
|RichText
Parameters ​
Parameter | Type |
---|---|
model | BaseBlockModel < 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