Skip to main content

Class: DecoratorBlockNode

@lexical/react/LexicalDecoratorBlockNode.DecoratorBlockNode

Hierarchy

Constructors

constructor

new DecoratorBlockNode(format?, key?): DecoratorBlockNode

Parameters

NameType
format?ElementFormatType
key?string

Returns

DecoratorBlockNode

Overrides

DecoratorNode.constructor

Defined in

packages/lexical-react/src/LexicalDecoratorBlockNode.ts:29

Properties

__format

__format: ElementFormatType

Defined in

packages/lexical-react/src/LexicalDecoratorBlockNode.ts:27


constructor

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

Inherited from

DecoratorNode.constructor

Defined in

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

Methods

canIndent

canIndent(): false

Returns

false

Defined in

packages/lexical-react/src/LexicalDecoratorBlockNode.ts:42


createDOM

createDOM(): HTMLElement

Returns

HTMLElement

Overrides

DecoratorNode.createDOM

Defined in

packages/lexical-react/src/LexicalDecoratorBlockNode.ts:46


decorate

decorate(editor, config): Element

The returned value is added to the LexicalEditor._decorators

Parameters

NameType
editorLexicalEditor
configEditorConfig

Returns

Element

Inherited from

DecoratorNode.decorate

Defined in

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


exportJSON

exportJSON(): SerializedDecoratorBlockNode

Returns

SerializedDecoratorBlockNode

Overrides

DecoratorNode.exportJSON

Defined in

packages/lexical-react/src/LexicalDecoratorBlockNode.ts:34


isInline

isInline(): false

Returns

false

Overrides

DecoratorNode.isInline

Defined in

packages/lexical-react/src/LexicalDecoratorBlockNode.ts:59


isIsolated

isIsolated(): boolean

Returns

boolean

Inherited from

DecoratorNode.isIsolated

Defined in

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


isKeyboardSelectable

isKeyboardSelectable(): boolean

Returns

boolean

Inherited from

DecoratorNode.isKeyboardSelectable

Defined in

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


setFormat

setFormat(format): void

Parameters

NameType
formatElementFormatType

Returns

void

Defined in

packages/lexical-react/src/LexicalDecoratorBlockNode.ts:54


updateDOM

updateDOM(): false

Returns

false

Overrides

DecoratorNode.updateDOM

Defined in

packages/lexical-react/src/LexicalDecoratorBlockNode.ts:50