Skip to content

BlockSuite API Documentation / @blocksuite/inline / InlineHookService

Class: InlineHookService<TextAttributes>

Type parameters

TextAttributes extends BaseTextAttributes

Constructors

new InlineHookService(editor, hooks)

new InlineHookService<TextAttributes>(editor, hooks): InlineHookService<TextAttributes>

Parameters

editor: InlineEditor<TextAttributes>

hooks= {}

hooks.beforeinput?

hooks.compositionEnd?

Returns

InlineHookService<TextAttributes>

Source

packages/framework/inline/src/services/hook.ts:27

Properties

editor

readonly editor: InlineEditor<TextAttributes>

Source

packages/framework/inline/src/services/hook.ts:28


hooks

readonly hooks: Object = {}

hooks.beforeinput?

optional beforeinput: (props) => void

Parameters

props: BeforeinputHookCtx<TextAttributes>

Returns

void

hooks.compositionEnd?

optional compositionEnd: (props) => void

Parameters

props: CompositionEndHookCtx<TextAttributes>

Returns

void

Source

packages/framework/inline/src/services/hook.ts:29