Module: @lexical/mark
Classes
Type Aliases
SerializedMarkNode
Ƭ SerializedMarkNode: Spread
<{ ids
: string
[] }, SerializedElementNode
>
Defined in
lexical-mark/src/MarkNode.ts:30
Functions
$createMarkNode
▸ $createMarkNode(ids
): MarkNode
Parameters
Name | Type |
---|---|
ids | string [] |
Returns
Defined in
lexical-mark/src/MarkNode.ts:210
$getMarkIDs
▸ $getMarkIDs(node
, offset
): null
| string
[]
Parameters
Name | Type |
---|---|
node | TextNode |
offset | number |
Returns
null
| string
[]
Defined in
$isMarkNode
▸ $isMarkNode(node
): node is MarkNode
Parameters
Name | Type |
---|---|
node | null | LexicalNode |
Returns
node is MarkNode
Defined in
lexical-mark/src/MarkNode.ts:214
$unwrapMarkNode
▸ $unwrapMarkNode(node
): void
Parameters
Name | Type |
---|---|
node | MarkNode |
Returns
void
Defined in
$wrapSelectionInMarkNode
▸ $wrapSelectionInMarkNode(selection
, isBackward
, id
, createNode?
): void
Parameters
Name | Type |
---|---|
selection | RangeSelection |
isBackward | boolean |
id | string |
createNode? | (ids : string []) => MarkNode |
Returns
void