Interface: BaseSelection
lexical.BaseSelection
Implemented by
Properties
_cachedNodes
• _cachedNodes: null
| LexicalNode
[]
Defined in
lexical/src/LexicalSelection.ts:249
dirty
• dirty: boolean
Defined in
lexical/src/LexicalSelection.ts:250
Methods
clone
▸ clone(): BaseSelection
Returns
Defined in
lexical/src/LexicalSelection.ts:252
extract
▸ extract(): LexicalNode
[]
Returns
Defined in
lexical/src/LexicalSelection.ts:253
getCachedNodes
▸ getCachedNodes(): null
| LexicalNode
[]
Returns
null
| LexicalNode
[]
Defined in
lexical/src/LexicalSelection.ts:263
getNodes
▸ getNodes(): LexicalNode
[]
Returns
Defined in
lexical/src/LexicalSelection.ts:254
getStartEndPoints
▸ getStartEndPoints(): null
| [PointType
, PointType
]
Returns
Defined in
lexical/src/LexicalSelection.ts:260
getTextContent
▸ getTextContent(): string
Returns
string
Defined in
lexical/src/LexicalSelection.ts:255
insertNodes
▸ insertNodes(nodes
): void
Parameters
Name | Type |
---|---|
nodes | LexicalNode [] |
Returns
void
Defined in
lexical/src/LexicalSelection.ts:259
insertRawText
▸ insertRawText(text
): void
Parameters
Name | Type |
---|---|
text | string |
Returns
void
Defined in
lexical/src/LexicalSelection.ts:257
insertText
▸ insertText(text
): void
Parameters
Name | Type |
---|---|
text | string |
Returns
void
Defined in
lexical/src/LexicalSelection.ts:256
is
▸ is(selection
): boolean
Parameters
Name | Type |
---|---|
selection | null | BaseSelection |
Returns
boolean
Defined in
lexical/src/LexicalSelection.ts:258
isBackward
▸ isBackward(): boolean
Returns
boolean
Defined in
lexical/src/LexicalSelection.ts:262
isCollapsed
▸ isCollapsed(): boolean
Returns
boolean
Defined in
lexical/src/LexicalSelection.ts:261
setCachedNodes
▸ setCachedNodes(nodes
): void
Parameters
Name | Type |
---|---|
nodes | null | LexicalNode [] |
Returns
void
Defined in
lexical/src/LexicalSelection.ts:264