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:37

Methods

createDOM

createDOM(): HTMLElement

Returns

HTMLElement

Overrides

LexicalNode.createDOM

Defined in

lexical/src/nodes/LexicalLineBreakNode.ts:45


exportJSON

exportJSON(): SerializedLineBreakNode

Returns

SerializedLineBreakNode

Overrides

LexicalNode.exportJSON

Defined in

lexical/src/nodes/LexicalLineBreakNode.ts:79


getTextContent

getTextContent(): "\n"

Returns

"\n"

Overrides

LexicalNode.getTextContent

Defined in

lexical/src/nodes/LexicalLineBreakNode.ts:41


updateDOM

updateDOM(): false

Returns

false

Overrides

LexicalNode.updateDOM

Defined in

lexical/src/nodes/LexicalLineBreakNode.ts:49


clone

Static clone(node): LineBreakNode

Parameters

NameType
nodeLineBreakNode

Returns

LineBreakNode

Overrides

LexicalNode.clone

Defined in

lexical/src/nodes/LexicalLineBreakNode.ts:33


getType

Static getType(): string

Returns

string

Overrides

LexicalNode.getType

Defined in

lexical/src/nodes/LexicalLineBreakNode.ts:29


importDOM

Static importDOM(): null | DOMConversionMap<HTMLElement>

Returns

null | DOMConversionMap<HTMLElement>

Defined in

lexical/src/nodes/LexicalLineBreakNode.ts:53


importJSON

Static importJSON(serializedLineBreakNode): LineBreakNode

Parameters

NameType
serializedLineBreakNodeSerializedLineBreakNode

Returns

LineBreakNode

Overrides

LexicalNode.importJSON

Defined in

lexical/src/nodes/LexicalLineBreakNode.ts:73