Interface: BaseSelection
lexical.BaseSelection
Implemented by
Properties
dirty
• dirty: boolean
Defined in
lexical/src/LexicalSelection.ts:264
Methods
clone
▸ clone(): BaseSelection
Returns
Defined in
lexical/src/LexicalSelection.ts:263
extract
▸ extract(): LexicalNode
[]
Returns
Defined in
lexical/src/LexicalSelection.ts:265
getCachedNodes
▸ getCachedNodes(): null
| LexicalNode
[]
Returns
null
| LexicalNode
[]
Defined in
lexical/src/LexicalSelection.ts:272
getNodes
▸ getNodes(): LexicalNode
[]
Returns
Defined in
lexical/src/LexicalSelection.ts:266
getTextContent
▸ getTextContent(): string
Returns
string
Defined in
lexical/src/LexicalSelection.ts:267
insertNodes
▸ insertNodes(nodes
): void
Parameters
Name | Type |
---|---|
nodes | LexicalNode [] |
Returns
void
Defined in
lexical/src/LexicalSelection.ts:271
insertRawText
▸ insertRawText(text
): void
Parameters
Name | Type |
---|---|
text | string |
Returns
void
Defined in
lexical/src/LexicalSelection.ts:269
insertText
▸ insertText(text
): void
Parameters
Name | Type |
---|---|
text | string |
Returns
void
Defined in
lexical/src/LexicalSelection.ts:268
is
▸ is(selection
): boolean
Parameters
Name | Type |
---|---|
selection | null | BaseSelection |
Returns
boolean
Defined in
lexical/src/LexicalSelection.ts:270
setCachedNodes
▸ setCachedNodes(nodes
): void
Parameters
Name | Type |
---|---|
nodes | null | LexicalNode [] |
Returns
void
Defined in
lexical/src/LexicalSelection.ts:273