Class: LineBreakNode
lexical.LineBreakNode
Hierarchy
↳
LineBreakNode
Constructors
constructor
• new LineBreakNode(key?
)
Parameters
Name | Type |
---|---|
key? | string |
Overrides
Defined in
lexical/src/nodes/LexicalLineBreakNode.ts:37
Methods
createDOM
▸ createDOM(): HTMLElement
Returns
HTMLElement
Overrides
Defined in
lexical/src/nodes/LexicalLineBreakNode.ts:45
exportJSON
▸ exportJSON(): SerializedLexicalNode
Returns
Overrides
Defined in
lexical/src/nodes/LexicalLineBreakNode.ts:79
getTextContent
▸ getTextContent(): "\n"
Returns
"\n"
Overrides
Defined in
lexical/src/nodes/LexicalLineBreakNode.ts:41
updateDOM
▸ updateDOM(): false
Returns
false
Overrides
Defined in
lexical/src/nodes/LexicalLineBreakNode.ts:49
clone
▸ Static
clone(node
): LineBreakNode
Parameters
Name | Type |
---|---|
node | LineBreakNode |
Returns
Overrides
Defined in
lexical/src/nodes/LexicalLineBreakNode.ts:33
getType
▸ Static
getType(): string
Returns
string
Overrides
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
Name | Type |
---|---|
serializedLineBreakNode | SerializedLineBreakNode |
Returns
Overrides
Defined in
lexical/src/nodes/LexicalLineBreakNode.ts:73