Module: @lexical/clipboard
Functions
$generateJSONFromSelectedNodes
▸ $generateJSONFromSelectedNodes<SerializedNode
>(editor
, selection
): Object
Type parameters
Name | Type |
---|---|
SerializedNode | extends BaseSerializedNode |
Parameters
Name | Type |
---|---|
editor | LexicalEditor |
selection | null | RangeSelection | NodeSelection | GridSelection |
Returns
Object
Name | Type |
---|---|
namespace | string |
nodes | SerializedNode [] |
Defined in
lexical-clipboard/src/clipboard.ts:445
$generateNodesFromSerializedNodes
▸ $generateNodesFromSerializedNodes(serializedNodes
): LexicalNode
[]
Parameters
Name | Type |
---|---|
serializedNodes | BaseSerializedNode [] |
Returns
Defined in
lexical-clipboard/src/clipboard.ts:467
$getHtmlContent
▸ $getHtmlContent(editor
): string
| null
Parameters
Name | Type |
---|---|
editor | LexicalEditor |
Returns
string
| null
Defined in
lexical-clipboard/src/clipboard.ts:47
$getLexicalContent
▸ $getLexicalContent(editor
): string
| null
Parameters
Name | Type |
---|---|
editor | LexicalEditor |
Returns
string
| null
Defined in
lexical-clipboard/src/clipboard.ts:65
$insertDataTransferForPlainText
▸ $insertDataTransferForPlainText(dataTransfer
, selection
): void
Parameters
Name | Type |
---|---|
dataTransfer | DataTransfer |
selection | RangeSelection | GridSelection |
Returns
void
Defined in
lexical-clipboard/src/clipboard.ts:83
$insertDataTransferForRichText
▸ $insertDataTransferForRichText(dataTransfer
, selection
, editor
): void
Parameters
Name | Type |
---|---|
dataTransfer | DataTransfer |
selection | RangeSelection | GridSelection |
editor | LexicalEditor |
Returns
void
Defined in
lexical-clipboard/src/clipboard.ts:93
$insertGeneratedNodes
▸ $insertGeneratedNodes(editor
, nodes
, selection
): void
Parameters
Name | Type |
---|---|
editor | LexicalEditor |
nodes | LexicalNode [] |
selection | RangeSelection | GridSelection |
Returns
void
Defined in
lexical-clipboard/src/clipboard.ts:145