From e72be57f110e30863f438e285d6f8240b5410304 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 7 Jan 2025 10:14:14 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/13736 --- app/src/protyle/util/paste.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.ts index 09cca230a..94f1df9d2 100644 --- a/app/src/protyle/util/paste.ts +++ b/app/src/protyle/util/paste.ts @@ -166,7 +166,7 @@ export const pasteAsPlainText = async (protyle: IProtyle) => { } if (localFiles.length > 0) { uploadLocalFiles(localFiles, protyle, false); - writeText(""); + return; } /// #endif if (localFiles.length === 0) { @@ -272,7 +272,6 @@ const readLocalFile = async (protyle: IProtyle, localFiles: string[]) => { } } uploadLocalFiles(localFiles, protyle, true); - writeText(""); }; export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEvent) & { target: HTMLElement }) => {