Skip to content

BlockSuite API Documentation / @blocksuite/affine-rich-text / TextFormatConfig

Interface: TextFormatConfig

Defined in: packages/affine/rich-text/src/format/config.ts:22

Properties

action()

action: (host) => void

Defined in: packages/affine/rich-text/src/format/config.ts:28

Parameters

host

EditorHost

Returns

void


activeWhen()

activeWhen: (host) => boolean

Defined in: packages/affine/rich-text/src/format/config.ts:27

Parameters

host

EditorHost

Returns

boolean


hotkey?

optional hotkey: string

Defined in: packages/affine/rich-text/src/format/config.ts:26


icon

icon: TemplateResult<1>

Defined in: packages/affine/rich-text/src/format/config.ts:25


id

id: string

Defined in: packages/affine/rich-text/src/format/config.ts:23


name

name: string

Defined in: packages/affine/rich-text/src/format/config.ts:24


textChecker()?

optional textChecker: (host) => boolean

Defined in: packages/affine/rich-text/src/format/config.ts:29

Parameters

host

EditorHost

Returns

boolean