We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e5b64c commit 4bde628Copy full SHA for 4bde628
packages/lexical-plain-text/src/index.ts
@@ -81,7 +81,9 @@ function onPasteForPlainText(
81
editor.update(
82
() => {
83
const selection = $getSelection();
84
- const {clipboardData} = event as ClipboardEvent;
+ const clipboardData = objectKlassEquals(event, ClipboardEvent)
85
+ ? event.clipboardData
86
+ : null;
87
if (clipboardData != null && $isRangeSelection(selection)) {
88
$insertDataTransferForPlainText(clipboardData, selection);
89
}
0 commit comments