Skip to main content

Interface: BaseSelection

lexical.BaseSelection

Implemented by

Properties

dirty

dirty: boolean

Defined in

lexical/src/LexicalSelection.ts:253

Methods

clone

clone(): BaseSelection

Returns

BaseSelection

Defined in

lexical/src/LexicalSelection.ts:252


extract

extract(): LexicalNode[]

Returns

LexicalNode[]

Defined in

lexical/src/LexicalSelection.ts:254


getNodes

getNodes(): LexicalNode[]

Returns

LexicalNode[]

Defined in

lexical/src/LexicalSelection.ts:255


getTextContent

getTextContent(): string

Returns

string

Defined in

lexical/src/LexicalSelection.ts:256


insertRawText

insertRawText(text): void

Parameters

NameType
textstring

Returns

void

Defined in

lexical/src/LexicalSelection.ts:257


is

is(selection): boolean

Parameters

NameType
selectionnull | RangeSelection | NodeSelection | GridSelection

Returns

boolean

Defined in

lexical/src/LexicalSelection.ts:258