BlockSuite API Documentation / @blocksuite/blocks / insertContent
Function: insertContent()
insertContent(
editorHost
,model
,text
,attributes
?):void
Parameters
• editorHost: EditorHost
• model: BlockModel
<object
, SignaledProps
<object
>>
• text: string
• attributes?: AffineTextAttributes
Returns
void
Defined in
packages/blocks/src/root-block/widgets/slash-menu/utils.ts:85