BlockSuite API Documentation / @blocksuite/blocks / InlineManager
Class: InlineManager<TextAttributes>
Type Parameters
• TextAttributes extends BaseTextAttributes
= BaseTextAttributes
Constructors
new InlineManager()
new InlineManager<
TextAttributes
>():InlineManager
<TextAttributes
>
Returns
InlineManager
<TextAttributes
>
Properties
embedChecker()
embedChecker: (
delta
) =>boolean
Parameters
• delta: DeltaInsert
<TextAttributes
>
Returns
boolean
Defined in
packages/affine/components/dist/rich-text/inline/inline-manager.d.ts:26
getRenderer()
getRenderer: () =>
AttributeRenderer
<TextAttributes
>
Returns
AttributeRenderer
<TextAttributes
>
Defined in
packages/affine/components/dist/rich-text/inline/inline-manager.d.ts:27
getSchema()
getSchema: () =>
ZodObject
<Record
<keyofTextAttributes
,ZodTypeAny
>,UnknownKeysParam
,ZodTypeAny
, { [k in string | number | symbol]: addQuestionMarks<baseObjectOutputType<Record<keyof TextAttributes, ZodTypeAny>>, any>[k] }, { [k in string | number | symbol]: baseObjectInputType<Record<keyof TextAttributes, ZodTypeAny>>[k] }>
Returns
ZodObject
<Record
<keyof TextAttributes
, ZodTypeAny
>, UnknownKeysParam
, ZodTypeAny
, { [k in string | number | symbol]: addQuestionMarks<baseObjectOutputType<Record<keyof TextAttributes, ZodTypeAny>>, any>[k] }, { [k in string | number | symbol]: baseObjectInputType<Record<keyof TextAttributes, ZodTypeAny>>[k] }>
Defined in
packages/affine/components/dist/rich-text/inline/inline-manager.d.ts:28
markdownShortcutHandler()
markdownShortcutHandler: (
context
,undoManager
) =>boolean
Parameters
• context: KeyboardBindingContext
<TextAttributes
>
• undoManager: UndoManager
Returns
boolean
Defined in
packages/affine/components/dist/rich-text/inline/inline-manager.d.ts:29
Accessors
markdownMatches
get
markdownMatches():InlineMarkdownMatch
<TextAttributes
>[]
Returns
InlineMarkdownMatch
<TextAttributes
>[]
Defined in
packages/affine/components/dist/rich-text/inline/inline-manager.d.ts:30
specs
get
specs():InlineSpecs
<TextAttributes
>[]
Returns
InlineSpecs
<TextAttributes
>[]
Defined in
packages/affine/components/dist/rich-text/inline/inline-manager.d.ts:31
Methods
registerMarkdownMatches()
registerMarkdownMatches(
markdownMatches
):void
Parameters
• markdownMatches: InlineMarkdownMatch
<TextAttributes
>[]
Returns
void
Defined in
packages/affine/components/dist/rich-text/inline/inline-manager.d.ts:32
registerSpecs()
registerSpecs(
specs
):void
Parameters
• specs: InlineSpecs
<TextAttributes
>[]
Returns
void
Defined in
packages/affine/components/dist/rich-text/inline/inline-manager.d.ts:33