Skip to content

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/affine/components/dist/rich-text/format/utils.d.ts:8