Interface: BaseSelection
lexical.BaseSelection
Implemented by
Properties
_cachedNodes
• _cachedNodes: null
| LexicalNode
[]
Defined in
packages/lexical/src/LexicalSelection.ts:224
dirty
• dirty: boolean
Defined in
packages/lexical/src/LexicalSelection.ts:225
Methods
clone
▸ clone(): BaseSelection
Returns
Defined in
packages/lexical/src/LexicalSelection.ts:227
extract
▸ extract(): LexicalNode
[]
Returns
Defined in
packages/lexical/src/LexicalSelection.ts:228
getCachedNodes
▸ getCachedNodes(): null
| LexicalNode
[]
Returns
null
| LexicalNode
[]
Defined in
packages/lexical/src/LexicalSelection.ts:238
getNodes
▸ getNodes(): LexicalNode
[]
Returns
Defined in
packages/lexical/src/LexicalSelection.ts:229
getStartEndPoints
▸ getStartEndPoints(): null
| [PointType
, PointType
]
Returns
Defined in
packages/lexical/src/LexicalSelection.ts:235
getTextContent
▸ getTextContent(): string
Returns
string
Defined in
packages/lexical/src/LexicalSelection.ts:230
insertNodes
▸ insertNodes(nodes
): void
Parameters
Name | Type |
---|---|
nodes | LexicalNode [] |
Returns
void
Defined in
packages/lexical/src/LexicalSelection.ts:234
insertRawText
▸ insertRawText(text
): void
Parameters
Name | Type |
---|---|
text | string |
Returns
void
Defined in
packages/lexical/src/LexicalSelection.ts:232
insertText
▸ insertText(text
): void
Parameters
Name | Type |
---|---|
text | string |
Returns
void
Defined in
packages/lexical/src/LexicalSelection.ts:231
is
▸ is(selection
): boolean
Parameters
Name | Type |
---|---|
selection | null | BaseSelection |
Returns
boolean
Defined in
packages/lexical/src/LexicalSelection.ts:233
isBackward
▸ isBackward(): boolean
Returns
boolean
Defined in
packages/lexical/src/LexicalSelection.ts:237
isCollapsed
▸ isCollapsed(): boolean
Returns
boolean
Defined in
packages/lexical/src/LexicalSelection.ts:236
setCachedNodes
▸ setCachedNodes(nodes
): void
Parameters
Name | Type |
---|---|
nodes | null | LexicalNode [] |
Returns
void