Skip to main content

Interface: BaseSelection

lexical.BaseSelection

Implemented by

Properties

_cachedNodes

_cachedNodes: null | LexicalNode[]

Defined in

packages/lexical/src/LexicalSelection.ts:272


dirty

dirty: boolean

Defined in

packages/lexical/src/LexicalSelection.ts:273

Methods

clone

clone(): BaseSelection

Returns

BaseSelection

Defined in

packages/lexical/src/LexicalSelection.ts:275


extract

extract(): LexicalNode[]

Returns

LexicalNode[]

Defined in

packages/lexical/src/LexicalSelection.ts:276


getCachedNodes

getCachedNodes(): null | LexicalNode[]

Returns

null | LexicalNode[]

Defined in

packages/lexical/src/LexicalSelection.ts:286


getNodes

getNodes(): LexicalNode[]

Returns

LexicalNode[]

Defined in

packages/lexical/src/LexicalSelection.ts:277


getStartEndPoints

getStartEndPoints(): null | [PointType, PointType]

Returns

null | [PointType, PointType]

Defined in

packages/lexical/src/LexicalSelection.ts:283


getTextContent

getTextContent(): string

Returns

string

Defined in

packages/lexical/src/LexicalSelection.ts:278


insertNodes

insertNodes(nodes): void

Parameters

NameType
nodesLexicalNode[]

Returns

void

Defined in

packages/lexical/src/LexicalSelection.ts:282


insertRawText

insertRawText(text): void

Parameters

NameType
textstring

Returns

void

Defined in

packages/lexical/src/LexicalSelection.ts:280


insertText

insertText(text): void

Parameters

NameType
textstring

Returns

void

Defined in

packages/lexical/src/LexicalSelection.ts:279


is

is(selection): boolean

Parameters

NameType
selectionnull | BaseSelection

Returns

boolean

Defined in

packages/lexical/src/LexicalSelection.ts:281


isBackward

isBackward(): boolean

Returns

boolean

Defined in

packages/lexical/src/LexicalSelection.ts:285


isCollapsed

isCollapsed(): boolean

Returns

boolean

Defined in

packages/lexical/src/LexicalSelection.ts:284


setCachedNodes

setCachedNodes(nodes): void

Parameters

NameType
nodesnull | LexicalNode[]

Returns

void

Defined in

packages/lexical/src/LexicalSelection.ts:287