Skip to content

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

InlineManager

Defined in

packages/affine/components/dist/rich-text/extension/inline-manager.d.ts:16

Properties

embedChecker()

embedChecker: (delta) => boolean

Parameters

delta

DeltaInsert<AffineTextAttributes>

Returns

boolean

Defined in

packages/affine/components/dist/rich-text/extension/inline-manager.d.ts:11


getRenderer()

getRenderer: () => AttributeRenderer<AffineTextAttributes>

Returns

AttributeRenderer<AffineTextAttributes>

Defined in

packages/affine/components/dist/rich-text/extension/inline-manager.d.ts:12


getSchema()

getSchema: () => ZodObject<Record<keyof AffineTextAttributes, ZodTypeAny>, UnknownKeysParam, ZodTypeAny, { background: any; bold: any; code: any; color: any; italic: any; latex: any; link: any; reference: any; strike: any; underline: any; }, { background: any; bold: any; code: any; color: any; italic: any; latex: any; link: any; reference: any; strike: any; underline: any; }>

Returns

ZodObject<Record<keyof AffineTextAttributes, ZodTypeAny>, UnknownKeysParam, ZodTypeAny, { background: any; bold: any; code: any; color: any; italic: any; latex: any; link: any; reference: any; strike: any; underline: any; }, { background: any; bold: any; code: any; color: any; italic: any; latex: any; link: any; reference: any; strike: any; underline: any; }>

Defined in

packages/affine/components/dist/rich-text/extension/inline-manager.d.ts:13


markdownMatches

readonly markdownMatches: InlineMarkdownMatch<AffineTextAttributes>[]

Defined in

packages/affine/components/dist/rich-text/extension/inline-manager.d.ts:10


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:14


specs

readonly specs: InlineSpecs<AffineTextAttributes>[]

Defined in

packages/affine/components/dist/rich-text/extension/inline-manager.d.ts:15


std

readonly std: BlockStdScope

Defined in

packages/affine/components/dist/rich-text/extension/inline-manager.d.ts:9