Skip to main content

Module: @lexical/clipboard

Functions

$generateJSONFromSelectedNodes

$generateJSONFromSelectedNodes<SerializedNode>(editor, selection): Object

Type parameters

NameType
SerializedNodeextends BaseSerializedNode

Parameters

NameType
editorLexicalEditor
selectionnull | RangeSelection | NodeSelection | GridSelection

Returns

Object

NameType
namespacestring
nodesSerializedNode[]

Defined in

lexical-clipboard/src/clipboard.ts:451


$generateNodesFromSerializedNodes

$generateNodesFromSerializedNodes(serializedNodes): LexicalNode[]

Parameters

NameType
serializedNodesBaseSerializedNode[]

Returns

LexicalNode[]

Defined in

lexical-clipboard/src/clipboard.ts:473


$getHtmlContent

$getHtmlContent(editor): string | null

Parameters

NameType
editorLexicalEditor

Returns

string | null

Defined in

lexical-clipboard/src/clipboard.ts:47


$getLexicalContent

$getLexicalContent(editor): string | null

Parameters

NameType
editorLexicalEditor

Returns

string | null

Defined in

lexical-clipboard/src/clipboard.ts:65


$insertDataTransferForPlainText

$insertDataTransferForPlainText(dataTransfer, selection): void

Parameters

NameType
dataTransferDataTransfer
selectionRangeSelection | GridSelection

Returns

void

Defined in

lexical-clipboard/src/clipboard.ts:83


$insertDataTransferForRichText

$insertDataTransferForRichText(dataTransfer, selection, editor): void

Parameters

NameType
dataTransferDataTransfer
selectionRangeSelection | GridSelection
editorLexicalEditor

Returns

void

Defined in

lexical-clipboard/src/clipboard.ts:93


$insertGeneratedNodes

$insertGeneratedNodes(editor, nodes, selection): void

Parameters

NameType
editorLexicalEditor
nodesLexicalNode[]
selectionRangeSelection | GridSelection

Returns

void

Defined in

lexical-clipboard/src/clipboard.ts:145