Class: ArtificialNode__DO_NOT_USE
lexical.ArtificialNode__DO_NOT_USE
Hierarchy
-
↳
ArtificialNode__DO_NOT_USE
Constructors
constructor
• new ArtificialNode__DO_NOT_USE(key?
): ArtificialNode__DO_NOT_USE
Parameters
Name | Type |
---|---|
key? | string |
Returns
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:78
Properties
constructor
• constructor: KlassConstructor
<typeof ElementNode
>
Inherited from
ElementNode.constructor
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:62
Methods
append
▸ append(...nodesToAppend
): this
Parameters
Name | Type |
---|---|
...nodesToAppend | LexicalNode [] |
Returns
this
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:355
canBeEmpty
▸ canBeEmpty(): boolean
Returns
boolean
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:548
canIndent
▸ canIndent(): boolean
Returns
boolean
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:526
canInsertTextAfter
▸ canInsertTextAfter(): boolean
Returns
boolean
Inherited from
ElementNode.canInsertTextAfter
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:554
canInsertTextBefore
▸ canInsertTextBefore(): boolean
Returns
boolean
Inherited from
ElementNode.canInsertTextBefore
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:551
clear
▸ clear(): this
Returns
this
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:349
collapseAtStart
▸ collapseAtStart(selection
): boolean
Parameters
Name | Type |
---|---|
selection | RangeSelection |
Returns
boolean
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:534
createDOM
▸ createDOM(config
): HTMLElement
Parameters
Name | Type |
---|---|
config | EditorConfig |
Returns
HTMLElement
Overrides
ElementNode.createDOM
Defined in
packages/lexical/src/nodes/ArtificialNode.ts:18
excludeFromCopy
▸ excludeFromCopy(destination?
): boolean
Parameters
Name | Type |
---|---|
destination? | "clone" | "html" |
Returns
boolean
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:537
exportJSON
▸ exportJSON(): SerializedElementNode
<SerializedLexicalNode
>
Controls how the this node is serialized to JSON. This is important for copy and paste between Lexical editors sharing the same namespace. It's also important if you're serializing to JSON for persistent storage somewhere. See Serialization & Deserialization.
Returns
SerializedElementNode
<SerializedLexicalNode
>
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:509
extractWithChild
▸ extractWithChild(child
, selection
, destination
): boolean
Parameters
Name | Type |
---|---|
child | LexicalNode |
selection | null | BaseSelection |
destination | "clone" | "html" |
Returns
boolean
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:571
getAllTextNodes
▸ getAllTextNodes(): TextNode
[]
Returns
TextNode
[]
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:140
getChildAtIndex
▸ getChildAtIndex<T
>(index
): null
| T
Type parameters
Name | Type |
---|---|
T | extends LexicalNode |
Parameters
Name | Type |
---|---|
index | number |
Returns
null
| T
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:221
getChildren
▸ getChildren<T
>(): T
[]
Type parameters
Name | Type |
---|---|
T | extends LexicalNode |
Returns
T
[]
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:105
getChildrenKeys
▸ getChildrenKeys(): string
[]
Returns
string
[]
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:114
getChildrenSize
▸ getChildrenSize(): number
Returns
number
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:123
getDescendantByIndex
▸ getDescendantByIndex<T
>(index
): null
| T
Type parameters
Name | Type |
---|---|
T | extends LexicalNode |
Parameters
Name | Type |
---|---|
index | number |
Returns
null
| T
Inherited from
ElementNode.getDescendantByIndex
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:177
getDirection
▸ getDirection(): null
| "ltr"
| "rtl"
Returns
null
| "ltr"
| "rtl"
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:282
getFirstChild
▸ getFirstChild<T
>(): null
| T
Type parameters
Name | Type |
---|---|
T | extends LexicalNode |
Returns
null
| T
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:197
getFirstChildOrThrow
▸ getFirstChildOrThrow<T
>(): T
Type parameters
Name | Type |
---|---|
T | extends LexicalNode |
Returns
T
Inherited from
ElementNode.getFirstChildOrThrow
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:202
getFirstDescendant
▸ getFirstDescendant<T
>(): null
| T
Type parameters
Name | Type |
---|---|
T | extends LexicalNode |
Returns
null
| T
Inherited from
ElementNode.getFirstDescendant
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:155
getFormat
▸ getFormat(): number
Returns
number
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:89
getFormatType
▸ getFormatType(): ElementFormatType
Returns
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:93
getIndent
▸ getIndent(): number
Returns
number
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:101
getLastChild
▸ getLastChild<T
>(): null
| T
Type parameters
Name | Type |
---|---|
T | extends LexicalNode |
Returns
null
| T
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:209
getLastChildOrThrow
▸ getLastChildOrThrow<T
>(): T
Type parameters
Name | Type |
---|---|
T | extends LexicalNode |
Returns
T
Inherited from
ElementNode.getLastChildOrThrow
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:214
getLastDescendant
▸ getLastDescendant<T
>(): null
| T
Type parameters
Name | Type |
---|---|
T | extends LexicalNode |
Returns
null
| T
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:166
getStyle
▸ getStyle(): string
Returns
string
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:97
getTextContent
▸ getTextContent(): string
Returns the text content of the node. Override this for custom nodes that should have a representation in plain text format (for copy + paste, for example)
Returns
string
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:248
getTextContentSize
▸ getTextContentSize(): number
Returns the length of the string produced by calling getTextContent on this node.
Returns
number
Inherited from
ElementNode.getTextContentSize
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:265
hasFormat
▸ hasFormat(type
): boolean
Parameters
Name | Type |
---|---|
type | ElementFormatType |
Returns
boolean
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:286
insertNewAfter
▸ insertNewAfter(selection
, restoreSelection?
): null
| LexicalNode
Parameters
Name | Type |
---|---|
selection | RangeSelection |
restoreSelection? | boolean |
Returns
null
| LexicalNode
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:520
isDirty
▸ isDirty(): boolean
Returns true if this node has been marked dirty during this update cycle.
Returns
boolean
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:130
isEmpty
▸ isEmpty(): boolean
Returns
boolean
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:127
isInline
▸ isInline(): boolean
Returns
boolean
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:557
isLastChild
▸ isLastChild(): boolean
Returns
boolean
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:135
isShadowRoot
▸ isShadowRoot(): boolean
Returns
boolean
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:564
select
▸ select(_anchorOffset?
, _focusOffset?
): RangeSelection
Parameters
Name | Type |
---|---|
_anchorOffset? | number |
_focusOffset? | number |
Returns
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:296
selectEnd
▸ selectEnd(): RangeSelection
Returns
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:345
selectStart
▸ selectStart(): RangeSelection
Returns
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:341
setDirection
▸ setDirection(direction
): this
Parameters
Name | Type |
---|---|
direction | null | "ltr" | "rtl" |
Returns
this
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:358
setFormat
▸ setFormat(type
): this
Parameters
Name | Type |
---|---|
type | ElementFormatType |
Returns
this
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:363
setIndent
▸ setIndent(indentLevel
): this
Parameters
Name | Type |
---|---|
indentLevel | number |
Returns
this
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:373
setStyle
▸ setStyle(style
): this
Parameters
Name | Type |
---|---|
style | string |
Returns
this
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:368
splice
▸ splice(start
, deleteCount
, nodesToInsert
): this
Parameters
Name | Type |
---|---|
start | number |
deleteCount | number |
nodesToInsert | LexicalNode [] |
Returns
this
Inherited from
Defined in
packages/lexical/src/nodes/LexicalElementNode.ts:378
getType
▸ getType(): string
Returns
string
Overrides
ElementNode.getType