We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 438eb74 commit 4456234Copy full SHA for 4456234
apps/web/src/views/CodemirrorEditor.vue
@@ -370,6 +370,10 @@ function createFormTextArea(dom: HTMLTextAreaElement) {
370
return
371
}
372
const items = [...event.clipboardData.items].map(item => item.getAsFile()).filter(item => item != null && beforeUpload(item)) as File[]
373
+ // 即使return了,粘贴的文本内容也会被插入
374
+ if (items.length === 0) {
375
+ return
376
+ }
377
// start progress
378
const intervalId = setInterval(() => {
379
const newProgress = progressValue.value + 1
0 commit comments