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
readonlyeditor:InlineEditor<TextAttributes>
Source
packages/framework/inline/src/services/hook.ts:28
hooks
readonlyhooks:object={}
beforeinput()?
optionalbeforeinput: (props) =>void
Parameters
• props: BeforeinputHookCtx<TextAttributes>
Returns
void
compositionEnd()?
optionalcompositionEnd: (props) =>void
Parameters
• props: CompositionEndHookCtx<TextAttributes>
Returns
void
Source
packages/framework/inline/src/services/hook.ts:29