Skip to main content

Module: @lexical/mark

Classes

Type Aliases

SerializedMarkNode

Ƭ SerializedMarkNode: Spread<{ ids: string[] }, SerializedElementNode>

Defined in

packages/lexical-mark/src/MarkNode.ts:25

Functions

$createMarkNode

$createMarkNode(ids): MarkNode

Parameters

NameType
idsreadonly string[]

Returns

MarkNode

Defined in

packages/lexical-mark/src/MarkNode.ts:200


$getMarkIDs

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

Parameters

NameType
nodeTextNode
offsetnumber

Returns

null | string[]

Defined in

packages/lexical-mark/src/index.ts:135


$isMarkNode

$isMarkNode(node): node is MarkNode

Parameters

NameType
nodenull | LexicalNode

Returns

node is MarkNode

Defined in

packages/lexical-mark/src/MarkNode.ts:204


$unwrapMarkNode

$unwrapMarkNode(node): void

Parameters

NameType
nodeMarkNode

Returns

void

Defined in

packages/lexical-mark/src/index.ts:16


$wrapSelectionInMarkNode

$wrapSelectionInMarkNode(selection, isBackward, id, createNode?): void

Parameters

NameType
selectionRangeSelection
isBackwardboolean
idstring
createNode?(ids: string[]) => MarkNode

Returns

void

Defined in

packages/lexical-mark/src/index.ts:31