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:424
$generateNodesFromSerializedNodes
▸ $generateNodesFromSerializedNodes(serializedNodes
): LexicalNode
[]
Parameters
Name | Type |
---|---|
serializedNodes | BaseSerializedNode [] |
Returns
Defined in
lexical-clipboard/src/clipboard.ts:446
$getHtmlContent
▸ $getHtmlContent(editor
): string
Parameters
Name | Type |
---|---|
editor | LexicalEditor |
Returns
string
Defined in
lexical-clipboard/src/clipboard.ts:46
$getLexicalContent
▸ $getLexicalContent(editor
): null
| string
Parameters
Name | Type |
---|---|
editor | LexicalEditor |
Returns
null
| string
Defined in
lexical-clipboard/src/clipboard.ts:66
$insertDataTransferForPlainText
▸ $insertDataTransferForPlainText(dataTransfer
, selection
): void
Parameters
Name | Type |
---|---|
dataTransfer | DataTransfer |
selection | RangeSelection | GridSelection |
Returns
void
Defined in
lexical-clipboard/src/clipboard.ts:84
$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:94
$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:148
copyToClipboard__EXPERIMENTAL
▸ copyToClipboard__EXPERIMENTAL(editor
, event
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
editor | LexicalEditor |
event | null | ClipboardEvent |
Returns
Promise
<boolean
>
Defined in
lexical-clipboard/src/clipboard.ts:466