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