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: Object= {}
• hooks.beforeinput?: (props) => void
• hooks.compositionEnd?: (props) => void
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={}
Type declaration
beforeinput?
beforeinput?: (
props) =>void
Parameters
• props: BeforeinputHookCtx<TextAttributes>
Returns
void
compositionEnd?
compositionEnd?: (
props) =>void
Parameters
• props: CompositionEndHookCtx<TextAttributes>
Returns
void
Source
packages/framework/inline/src/services/hook.ts:29
Generated using TypeDoc and typedoc-plugin-markdown.