Skip to content

BlockSuite API Documentation / @blocksuite/blocks / InlineSpecExtension

Function: InlineSpecExtension()

InlineSpecExtension(name, getSpec)

InlineSpecExtension(name, getSpec): ExtensionType & object

Parameters

name: string

getSpec

Returns

ExtensionType & object

Defined in

packages/affine/components/dist/rich-text/extension/inline-spec.d.ts:5

InlineSpecExtension(spec)

InlineSpecExtension(spec): ExtensionType & object

Parameters

spec: InlineSpecs<AffineTextAttributes>

Returns

ExtensionType & object

Defined in

packages/affine/components/dist/rich-text/extension/inline-spec.d.ts:8