Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/13736

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