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

Methods

createDOM

createDOM(): HTMLElement

Returns

HTMLElement

Overrides

LexicalNode.createDOM

Defined in

lexical/src/nodes/LexicalLineBreakNode.ts:44


exportJSON

exportJSON(): SerializedLexicalNode

Returns

SerializedLexicalNode

Overrides

LexicalNode.exportJSON

Defined in

lexical/src/nodes/LexicalLineBreakNode.ts:78


getTextContent

getTextContent(): "\n"

Returns

"\n"

Overrides

LexicalNode.getTextContent

Defined in

lexical/src/nodes/LexicalLineBreakNode.ts:40


updateDOM

updateDOM(): false

Returns

false

Overrides

LexicalNode.updateDOM

Defined in

lexical/src/nodes/LexicalLineBreakNode.ts:48


clone

Static clone(node): LineBreakNode

Parameters

NameType
nodeLineBreakNode

Returns

LineBreakNode

Overrides

LexicalNode.clone

Defined in

lexical/src/nodes/LexicalLineBreakNode.ts:32


getType

Static getType(): string

Returns

string

Overrides

LexicalNode.getType

Defined in

lexical/src/nodes/LexicalLineBreakNode.ts:28


importDOM

Static importDOM(): null | DOMConversionMap<HTMLElement>

Returns

null | DOMConversionMap<HTMLElement>

Defined in

lexical/src/nodes/LexicalLineBreakNode.ts:52


importJSON

Static importJSON(serializedLineBreakNode): LineBreakNode

Parameters

NameType
serializedLineBreakNodeSerializedLineBreakNode

Returns

LineBreakNode

Overrides

LexicalNode.importJSON

Defined in

lexical/src/nodes/LexicalLineBreakNode.ts:72