Skip to content

BlockSuite API Documentation / @blocksuite/blocks / onModelTextUpdated

Function: onModelTextUpdated()

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

Parameters

editorHost: EditorHost

model: BlockModel<object>

callback?

Returns

Promise<void>

Source

packages/blocks/src/root-block/utils/callback.ts:11