Skip to content

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

Function: onModelTextUpdated()

onModelTextUpdated(editorHost, model, callback?): Promise<void>

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

Parameters

editorHost

EditorHost

model

BlockModel

callback?

(text) => void

Returns

Promise<void>