An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/7206
Vanessa2b9a6181330c
diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.tsindex 080862afac..694c63aba3 100644--- a/app/src/protyle/util/paste.ts+++ b/app/src/protyle/util/paste.ts@@ -31,7 +31,7 @@ const filterClipboardHint = (protyle: IProtyle, textPlain: string) => {};export const pasteAsPlainText = async (protyle: IProtyle) => {- /// #if !BROWSER && !MOBILE+ /// #if !BROWSERlet localFiles: string[] = [];if ("darwin" === window.siyuan.config.system.os) {const xmlString = clipboard.read("NSFilenamesPboardType");@@ -49,9 +49,9 @@ export const pasteAsPlainText = async (protyle: IProtyle) => {if (localFiles.length > 0) {uploadLocalFiles(localFiles, protyle, false);writeText("");- } else {- getCurrentWindow().webContents.pasteAndMatchStyle();}+ /// #else+ getCurrentWindow().webContents.pasteAndMatchStyle();/// #endif};@@ -101,10 +101,10 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEvenif (textPlain.endsWith(Constants.ZWSP) && !textHTML) {textHTML = textPlain;}- /// #if !MOBILE+ /// #if !BROWSER+ // 不再支持 PC 浏览器 https://github.com/siyuan-note/siyuan/issues/7206if (!textHTML && !textPlain && ("clipboardData" in event)) {if ("darwin" === window.siyuan.config.system.os) {- /// #if !BROWSERconst xmlString = clipboard.read("NSFilenamesPboardType");const domParser = new DOMParser();const xmlDom = domParser.parseFromString(xmlString, "application/xml");@@ -117,7 +117,6 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEvenwriteText("");return;}- /// #endif} else {const xmlString = await fetchSyncPost("/api/clipboard/readFilePaths", {});if (xmlString.data.length > 0) {