Skip to main content

Module: lexical-mark/src

Classes

Functions

$createMarkNode

$createMarkNode(ids): MarkNode

Parameters

NameType
idsstring[]

Returns

MarkNode

Defined in

lexical-mark/src/MarkNode.ts:202


$getMarkIDs

$getMarkIDs(node, offset): null | string[]

Parameters

NameType
nodeTextNode
offsetnumber

Returns

null | string[]

Defined in

lexical-mark/src/index.ts:103


$isMarkNode

$isMarkNode(node): node is MarkNode

Parameters

NameType
nodenull | LexicalNode

Returns

node is MarkNode

Defined in

lexical-mark/src/MarkNode.ts:206


$unwrapMarkNode

$unwrapMarkNode(node): void

Parameters

NameType
nodeMarkNode

Returns

void

Defined in

lexical-mark/src/index.ts:22


$wrapSelectionInMarkNode

$wrapSelectionInMarkNode(selection, isBackward, id): void

Parameters

NameType
selectionRangeSelection
isBackwardboolean
idstring

Returns

void

Defined in

lexical-mark/src/index.ts:37