From 12b31d43f046836a393604e3daa44a814ee47764 Mon Sep 17 00:00:00 2001 From: "C." Date: Fri, 25 Oct 2024 13:46:58 -0500 Subject: [PATCH] Remove changes to $getClipboardDataFromSelection --- packages/lexical-clipboard/src/clipboard.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/lexical-clipboard/src/clipboard.ts b/packages/lexical-clipboard/src/clipboard.ts index 35b61c99def..06f463478be 100644 --- a/packages/lexical-clipboard/src/clipboard.ts +++ b/packages/lexical-clipboard/src/clipboard.ts @@ -523,13 +523,12 @@ const clipboardDataFunctions = [ */ export function $getClipboardDataFromSelection( selection: BaseSelection | null = $getSelection(), - editor: LexicalEditor = $getEditor(), ): LexicalClipboardData { const clipboardData: LexicalClipboardData = { 'text/plain': selection ? selection.getTextContent() : '', - 'web application/x-lexical-editor': $getLexicalContent(editor, selection), }; if (selection) { + const editor = $getEditor(); for (const [mimeType, $editorFn] of clipboardDataFunctions) { const v = $editorFn(editor, selection); if (v !== null) {