Skip to main content

Class: OverflowNode

lexical-overflow/src.OverflowNode

Hierarchy

Constructors

constructor

new OverflowNode(key?)

Parameters

NameType
key?string

Overrides

ElementNode.constructor

Defined in

lexical-overflow/src/index.ts:53

Methods

createDOM

createDOM(config): HTMLElement

Parameters

NameType
configEditorConfig

Returns

HTMLElement

Overrides

ElementNode.createDOM

Defined in

lexical-overflow/src/index.ts:65


excludeFromCopy

excludeFromCopy(): boolean

Returns

boolean

Overrides

ElementNode.excludeFromCopy

Defined in

lexical-overflow/src/index.ts:83


exportJSON

exportJSON(): SerializedElementNode

Returns

SerializedElementNode

Overrides

ElementNode.exportJSON

Defined in

lexical-overflow/src/index.ts:58


insertNewAfter

insertNewAfter(selection): null | LexicalNode

Parameters

NameType
selectionRangeSelection

Returns

null | LexicalNode

Overrides

ElementNode.insertNewAfter

Defined in

lexical-overflow/src/index.ts:78


updateDOM

updateDOM(prevNode, dom): boolean

Parameters

NameType
prevNodeOverflowNode
domHTMLElement

Returns

boolean

Overrides

ElementNode.updateDOM

Defined in

lexical-overflow/src/index.ts:74


clone

Static clone(node): OverflowNode

Parameters

NameType
nodeOverflowNode

Returns

OverflowNode

Overrides

ElementNode.clone

Defined in

lexical-overflow/src/index.ts:41


getType

Static getType(): string

Returns

string

Overrides

ElementNode.getType

Defined in

lexical-overflow/src/index.ts:37


importDOM

Static importDOM(): null

Returns

null

Defined in

lexical-overflow/src/index.ts:49


importJSON

Static importJSON(serializedNode): OverflowNode

Parameters

NameType
serializedNodeSerializedOverflowNode

Returns

OverflowNode

Overrides

ElementNode.importJSON

Defined in

lexical-overflow/src/index.ts:45