BlockSuite API Documentation / @blocksuite/blocks / InlineManager
Class: InlineManager
Constructors
new InlineManager()
new InlineManager(
std,markdownMatches, ...specs):InlineManager
Parameters
• std: BlockStdScope
• markdownMatches: InlineMarkdownMatch<AffineTextAttributes>[]
• ...specs: InlineSpecs<AffineTextAttributes>[]
Returns
Defined in
packages/affine/components/dist/rich-text/extension/inline-manager.d.ts:15
Properties
embedChecker()
embedChecker: (
delta) =>boolean
Parameters
• delta: DeltaInsert<AffineTextAttributes>
Returns
boolean
Defined in
packages/affine/components/dist/rich-text/extension/inline-manager.d.ts:10
getRenderer()
getRenderer: () =>
AttributeRenderer<AffineTextAttributes>
Returns
AttributeRenderer<AffineTextAttributes>
Defined in
packages/affine/components/dist/rich-text/extension/inline-manager.d.ts:11
getSchema()
getSchema: () =>
ZodObject<Record<keyofAffineTextAttributes,ZodTypeAny>,UnknownKeysParam,ZodTypeAny,object,object>
Returns
ZodObject<Record<keyof AffineTextAttributes, ZodTypeAny>, UnknownKeysParam, ZodTypeAny, object, object>
Defined in
packages/affine/components/dist/rich-text/extension/inline-manager.d.ts:12
markdownMatches
readonlymarkdownMatches:InlineMarkdownMatch<AffineTextAttributes>[]
Defined in
packages/affine/components/dist/rich-text/extension/inline-manager.d.ts:9
markdownShortcutHandler()
markdownShortcutHandler: (
context,undoManager) =>boolean
Parameters
• context: KeyboardBindingContext<AffineTextAttributes>
• undoManager: UndoManager
Returns
boolean
Defined in
packages/affine/components/dist/rich-text/extension/inline-manager.d.ts:13
specs
readonlyspecs:InlineSpecs<AffineTextAttributes>[]
Defined in
packages/affine/components/dist/rich-text/extension/inline-manager.d.ts:14
std
readonlystd:BlockStdScope
Defined in
packages/affine/components/dist/rich-text/extension/inline-manager.d.ts:8