Skip to content

BlockSuite API Documentation / @blocksuite/blocks / InlineManager

Class: InlineManager<TextAttributes>

Type parameters

TextAttributes extends BaseTextAttributes = BaseTextAttributes

Constructors

new InlineManager(undefined)

new InlineManager<TextAttributes>(): InlineManager<TextAttributes>

Returns

InlineManager<TextAttributes>

Properties

_markdownMatches

private _markdownMatches: InlineMarkdownMatch<TextAttributes>[] = []

Source

packages/blocks/src/_common/inline/inline-manager.ts:52


_specs

private _specs: InlineSpecs<TextAttributes>[] = []

Source

packages/blocks/src/_common/inline/inline-manager.ts:47

Accessors

markdownMatches

get markdownMatches(): InlineMarkdownMatch<TextAttributes>[]

Returns

InlineMarkdownMatch<TextAttributes>[]

Source

packages/blocks/src/_common/inline/inline-manager.ts:53


specs

get specs(): InlineSpecs<TextAttributes>[]

Returns

InlineSpecs<TextAttributes>[]

Source

packages/blocks/src/_common/inline/inline-manager.ts:48

Methods

embedChecker()

embedChecker(delta): boolean

Parameters

delta: DeltaInsert<TextAttributes>

Returns

boolean

Source

packages/blocks/src/_common/inline/inline-manager.ts:88


getRenderer()

getRenderer(): AttributeRenderer<TextAttributes>

Returns

AttributeRenderer<TextAttributes>

Source

packages/blocks/src/_common/inline/inline-manager.ts:97


getSchema()

getSchema(): ZodObject<Record<keyof TextAttributes, ZodTypeAny>, UnknownKeysParam, ZodTypeAny, { [k in string | number | symbol]: addQuestionMarks<baseObjectOutputType<Record<keyof TextAttributes, ZodTypeAny>>, requiredKeys<baseObjectOutputType<Record<keyof TextAttributes, ZodTypeAny>>>>[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>>, requiredKeys<baseObjectOutputType<Record<keyof TextAttributes, ZodTypeAny>>>>[k] }, { [k in string | number | symbol]: baseObjectInputType<Record<keyof TextAttributes, ZodTypeAny>>[k] }>

Source

packages/blocks/src/_common/inline/inline-manager.ts:112


markdownShortcutHandler()

markdownShortcutHandler(context, undoManager): boolean

Parameters

context: KeyboardBindingContext<TextAttributes>

undoManager: UndoManager

Returns

boolean

Source

packages/blocks/src/_common/inline/inline-manager.ts:67


registerMarkdownMatches()

registerMarkdownMatches(markdownMatches): void

Parameters

markdownMatches: InlineMarkdownMatch<TextAttributes>[]

Returns

void

Source

packages/blocks/src/_common/inline/inline-manager.ts:61


registerSpecs()

registerSpecs(specs): void

Parameters

specs: InlineSpecs<TextAttributes>[]

Returns

void

Source

packages/blocks/src/_common/inline/inline-manager.ts:57