Skip to main content

Class: DecoratorNode<T>

lexical.DecoratorNode

Type parameters

Name
T

Hierarchy

Constructors

constructor

new DecoratorNode<T>(key?): DecoratorNode<T>

Type parameters

Name
T

Parameters

NameType
key?string

Returns

DecoratorNode<T>

Overrides

LexicalNode.constructor

Defined in

packages/lexical/src/nodes/LexicalDecoratorNode.ts:20

Properties

constructor

constructor: KlassConstructor<(key?: string) => DecoratorNode<T>>

Overrides

LexicalNode.constructor

Defined in

packages/lexical/src/nodes/LexicalDecoratorNode.ts:19

Methods

decorate

decorate(editor, config): T

The returned value is added to the LexicalEditor._decorators

Parameters

NameType
editorLexicalEditor
configEditorConfig

Returns

T

Defined in

packages/lexical/src/nodes/LexicalDecoratorNode.ts:27


isInline

isInline(): boolean

Returns

boolean

Overrides

LexicalNode.isInline

Defined in

packages/lexical/src/nodes/LexicalDecoratorNode.ts:35


isIsolated

isIsolated(): boolean

Returns

boolean

Defined in

packages/lexical/src/nodes/LexicalDecoratorNode.ts:31


isKeyboardSelectable

isKeyboardSelectable(): boolean

Returns

boolean

Defined in

packages/lexical/src/nodes/LexicalDecoratorNode.ts:39