Skip to main content

Interface: BaseSelection

lexical.BaseSelection

Implemented by

Properties

_cachedNodes

_cachedNodes: null | LexicalNode[]

Defined in

lexical/src/LexicalSelection.ts:263


dirty

dirty: boolean

Defined in

lexical/src/LexicalSelection.ts:264

Methods

clone

clone(): BaseSelection

Returns

BaseSelection

Defined in

lexical/src/LexicalSelection.ts:266


extract

extract(): LexicalNode[]

Returns

LexicalNode[]

Defined in

lexical/src/LexicalSelection.ts:267


getCachedNodes

getCachedNodes(): null | LexicalNode[]

Returns

null | LexicalNode[]

Defined in

lexical/src/LexicalSelection.ts:277


getNodes

getNodes(): LexicalNode[]

Returns

LexicalNode[]

Defined in

lexical/src/LexicalSelection.ts:268


getStartEndPoints

getStartEndPoints(): null | [PointType, PointType]

Returns

null | [PointType, PointType]

Defined in

lexical/src/LexicalSelection.ts:274


getTextContent

getTextContent(): string

Returns

string

Defined in

lexical/src/LexicalSelection.ts:269


insertNodes

insertNodes(nodes): void

Parameters

NameType
nodesLexicalNode[]

Returns

void

Defined in

lexical/src/LexicalSelection.ts:273


insertRawText

insertRawText(text): void

Parameters

NameType
textstring

Returns

void

Defined in

lexical/src/LexicalSelection.ts:271


insertText

insertText(text): void

Parameters

NameType
textstring

Returns

void

Defined in

lexical/src/LexicalSelection.ts:270


is

is(selection): boolean

Parameters

NameType
selectionnull | BaseSelection

Returns

boolean

Defined in

lexical/src/LexicalSelection.ts:272


isBackward

isBackward(): boolean

Returns

boolean

Defined in

lexical/src/LexicalSelection.ts:276


isCollapsed

isCollapsed(): boolean

Returns

boolean

Defined in

lexical/src/LexicalSelection.ts:275


setCachedNodes

setCachedNodes(nodes): void

Parameters

NameType
nodesnull | LexicalNode[]

Returns

void

Defined in

lexical/src/LexicalSelection.ts:278