Class: OverflowNode
@lexical/overflow.OverflowNode
Hierarchy
↳
OverflowNode
Constructors
constructor
• new OverflowNode(key?
)
Parameters
Name | Type |
---|---|
key? | string |
Overrides
Defined in
lexical-overflow/src/index.ts:43
Methods
createDOM
▸ createDOM(config
): HTMLElement
Parameters
Name | Type |
---|---|
config | EditorConfig |
Returns
HTMLElement
Overrides
ElementNode.createDOM
Defined in
lexical-overflow/src/index.ts:48
excludeFromCopy
▸ excludeFromCopy(): boolean
Returns
boolean
Overrides
Defined in
lexical-overflow/src/index.ts:69
insertNewAfter
▸ insertNewAfter(selection
, restoreSelection?
): null
| LexicalNode
Parameters
Name | Type | Default value |
---|---|---|
selection | RangeSelection | undefined |
restoreSelection | boolean | true |
Returns
null
| LexicalNode
Overrides
Defined in
lexical-overflow/src/index.ts:61
updateDOM
▸ updateDOM(prevNode
, dom
): boolean
Parameters
Name | Type |
---|---|
prevNode | OverflowNode |
dom | HTMLElement |
Returns
boolean
Overrides
ElementNode.updateDOM
Defined in
lexical-overflow/src/index.ts:57
clone
▸ Static
clone(node
): OverflowNode
Parameters
Name | Type |
---|---|
node | OverflowNode |
Returns
Overrides
ElementNode.clone
Defined in
lexical-overflow/src/index.ts:35
getType
▸ Static
getType(): string
Returns
string
Overrides
ElementNode.getType
Defined in
lexical-overflow/src/index.ts:31
importDOM
▸ Static
importDOM(): null
Returns
null
Defined in
lexical-overflow/src/index.ts:39