Skip to content

Commit 1c8c42d

Browse files
committed
use option object for handleClipboardText
1 parent 358cd19 commit 1c8c42d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web_src/js/features/comp/Paste.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ async function handleClipboardImages(editor, dropzone, images, e) {
124124
}
125125
}
126126

127-
function handleClipboardText(textarea, e, text, isShiftDown) {
127+
function handleClipboardText(textarea, e, {text, isShiftDown}) {
128128
// pasting with "shift" means "paste as original content" in most applications
129129
if (isShiftDown) return; // let the browser handle it
130130

@@ -161,7 +161,7 @@ export function initTextareaPaste(textarea, dropzone) {
161161
if (images.length) {
162162
handleClipboardImages(new TextareaEditor(textarea), dropzone, images, e);
163163
} else if (text) {
164-
handleClipboardText(textarea, e, text, isShiftDown);
164+
handleClipboardText(textarea, e, {text, isShiftDown});
165165
}
166166
});
167167
}

0 commit comments

Comments
 (0)