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
beforeinput
(props) => void
compositionEnd
(props) => void
Returns
InlineHookService<TextAttributes>
Defined in
packages/framework/inline/src/services/hook.ts:27
Properties
editor
readonlyeditor:InlineEditor<TextAttributes>
Defined in
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
Defined in
packages/framework/inline/src/services/hook.ts:29