Skip to main content

@lexical/extension/config

Interfaces

KnownTypesAndNodes

Defined in: packages/lexical-extension/src/config.ts:16

Properties

nodes

nodes: Set<KlassConstructor<typeof LexicalNode>>

Defined in: packages/lexical-extension/src/config.ts:18

types

types: Set<string>

Defined in: packages/lexical-extension/src/config.ts:17

Functions

getKnownTypesAndNodes()

getKnownTypesAndNodes(config): KnownTypesAndNodes

Defined in: packages/lexical-extension/src/config.ts:28

Get the sets of nodes and types registered in the InitialEditorConfig. This is to be used when an extension needs to register optional behavior if some node or type is present.

Parameters

config

Pick<InitialEditorConfig, "nodes">

The InitialEditorConfig (accessible from an extension's init)

Returns

KnownTypesAndNodes

The known types and nodes as Sets


getNodeConfig()

getNodeConfig(config): readonly LexicalNodeConfig[]

Defined in: packages/lexical-extension/src/config.ts:46

Parameters

config

Pick<InitialEditorConfig, "nodes">

Returns

readonly LexicalNodeConfig[]