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