BlockSuite API Documentation / @blocksuite/inline / InlineHookService
Class: InlineHookService<TextAttributes>
Type Parameters
• TextAttributes extends BaseTextAttributes
Constructors
new InlineHookService()
new InlineHookService<
TextAttributes
>(editor
,hooks
):InlineHookService
<TextAttributes
>
Parameters
• editor: InlineEditor
<TextAttributes
>
• hooks = {}
• hooks.beforeinput?
• hooks.compositionEnd?
Returns
InlineHookService
<TextAttributes
>
Defined in
packages/framework/inline/src/services/hook.ts:27
Properties
editor
readonly
editor:InlineEditor
<TextAttributes
>
Defined in
packages/framework/inline/src/services/hook.ts:28
hooks
readonly
hooks:object
={}
beforeinput()?
optional
beforeinput: (props
) =>void
Parameters
• props: BeforeinputHookCtx
<TextAttributes
>
Returns
void
compositionEnd()?
optional
compositionEnd: (props
) =>void
Parameters
• props: CompositionEndHookCtx
<TextAttributes
>
Returns
void
Defined in
packages/framework/inline/src/services/hook.ts:29