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