Skip to main content

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

BaseSelection

Defined in

packages/lexical/src/LexicalSelection.ts:227


extract

extract(): LexicalNode[]

Returns

LexicalNode[]

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

LexicalNode[]

Defined in

packages/lexical/src/LexicalSelection.ts:229


getStartEndPoints

getStartEndPoints(): null | [PointType, PointType]

Returns

null | [PointType, PointType]

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

NameType
nodesLexicalNode[]

Returns

void

Defined in

packages/lexical/src/LexicalSelection.ts:234


insertRawText

insertRawText(text): void

Parameters

NameType
textstring

Returns

void

Defined in

packages/lexical/src/LexicalSelection.ts:232


insertText

insertText(text): void

Parameters

NameType
textstring

Returns

void

Defined in

packages/lexical/src/LexicalSelection.ts:231


is

is(selection): boolean

Parameters

NameType
selectionnull | 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

NameType
nodesnull | LexicalNode[]

Returns

void

Defined in

packages/lexical/src/LexicalSelection.ts:239