Skip to main content

Class: LineBreakNode

lexical.LineBreakNode

Hierarchy

Constructors

constructor

new LineBreakNode(key?)

Parameters

NameType
key?string

Overrides

LexicalNode.constructor

Defined in

lexical/src/nodes/LexicalLineBreakNode.ts:28

Methods

createDOM

createDOM(): HTMLElement

Returns

HTMLElement

Overrides

LexicalNode.createDOM

Defined in

lexical/src/nodes/LexicalLineBreakNode.ts:37


getTextContent

getTextContent(): "\n"

Returns

"\n"

Overrides

LexicalNode.getTextContent

Defined in

lexical/src/nodes/LexicalLineBreakNode.ts:33


updateDOM

updateDOM(): false

Returns

false

Overrides

LexicalNode.updateDOM

Defined in

lexical/src/nodes/LexicalLineBreakNode.ts:41


clone

Static clone(node): LineBreakNode

Parameters

NameType
nodeLineBreakNode

Returns

LineBreakNode

Overrides

LexicalNode.clone

Defined in

lexical/src/nodes/LexicalLineBreakNode.ts:24


getType

Static getType(): string

Returns

string

Overrides

LexicalNode.getType

Defined in

lexical/src/nodes/LexicalLineBreakNode.ts:20


importDOM

Static importDOM(): null | DOMConversionMap<HTMLElement>

Returns

null | DOMConversionMap<HTMLElement>

Defined in

lexical/src/nodes/LexicalLineBreakNode.ts:45