Class: LineBreakNode
lexical/src.LineBreakNode
Hierarchy
↳
LineBreakNode
Constructors
constructor
• new LineBreakNode(key?
)
Parameters
Name | Type |
---|---|
key? | string |
Overrides
Defined in
lexical/src/nodes/LexicalLineBreakNode.ts:36
Methods
createDOM
▸ createDOM(): HTMLElement
Returns
HTMLElement
Overrides
Defined in
lexical/src/nodes/LexicalLineBreakNode.ts:44
exportJSON
▸ exportJSON(): SerializedLexicalNode
Returns
Overrides
Defined in
lexical/src/nodes/LexicalLineBreakNode.ts:78
getTextContent
▸ getTextContent(): "\n"
Returns
"\n"
Overrides
Defined in
lexical/src/nodes/LexicalLineBreakNode.ts:40
updateDOM
▸ updateDOM(): false
Returns
false
Overrides
Defined in
lexical/src/nodes/LexicalLineBreakNode.ts:48
clone
▸ Static
clone(node
): LineBreakNode
Parameters
Name | Type |
---|---|
node | LineBreakNode |
Returns
Overrides
Defined in
lexical/src/nodes/LexicalLineBreakNode.ts:32
getType
▸ Static
getType(): string
Returns
string
Overrides
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
Name | Type |
---|---|
serializedLineBreakNode | SerializedLineBreakNode |
Returns
Overrides
Defined in
lexical/src/nodes/LexicalLineBreakNode.ts:72