Skip to main content

Interface: BaseSelection

lexical.BaseSelection

Implemented by

Properties

_cachedNodes

_cachedNodes: null | LexicalNode[]

Defined in

packages/lexical/src/LexicalSelection.ts:250


dirty

dirty: boolean

Defined in

packages/lexical/src/LexicalSelection.ts:251

Methods

clone

clone(): BaseSelection

Returns

BaseSelection

Defined in

packages/lexical/src/LexicalSelection.ts:253


extract

extract(): LexicalNode[]

Returns

LexicalNode[]

Defined in

packages/lexical/src/LexicalSelection.ts:254


getCachedNodes

getCachedNodes(): null | LexicalNode[]

Returns

null | LexicalNode[]

Defined in

packages/lexical/src/LexicalSelection.ts:264


getNodes

getNodes(): LexicalNode[]

Returns

LexicalNode[]

Defined in

packages/lexical/src/LexicalSelection.ts:255


getStartEndPoints

getStartEndPoints(): null | [PointType, PointType]

Returns

null | [PointType, PointType]

Defined in

packages/lexical/src/LexicalSelection.ts:261


getTextContent

getTextContent(): string

Returns

string

Defined in

packages/lexical/src/LexicalSelection.ts:256


insertNodes

insertNodes(nodes): void

Parameters

NameType
nodesLexicalNode[]

Returns

void

Defined in

packages/lexical/src/LexicalSelection.ts:260


insertRawText

insertRawText(text): void

Parameters

NameType
textstring

Returns

void

Defined in

packages/lexical/src/LexicalSelection.ts:258


insertText

insertText(text): void

Parameters

NameType
textstring

Returns

void

Defined in

packages/lexical/src/LexicalSelection.ts:257


is

is(selection): boolean

Parameters

NameType
selectionnull | BaseSelection

Returns

boolean

Defined in

packages/lexical/src/LexicalSelection.ts:259


isBackward

isBackward(): boolean

Returns

boolean

Defined in

packages/lexical/src/LexicalSelection.ts:263


isCollapsed

isCollapsed(): boolean

Returns

boolean

Defined in

packages/lexical/src/LexicalSelection.ts:262


setCachedNodes

setCachedNodes(nodes): void

Parameters

NameType
nodesnull | LexicalNode[]

Returns

void

Defined in

packages/lexical/src/LexicalSelection.ts:265