diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.ts index 09cca230ade..94f1df9d22f 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 }) => {