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: Dragging multiple files into the editor will cause them to be opened by the default program (#15773)
Jeffrey Chen17a96ee1b1b5
diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.tsindex 495be24ee3..e473cca2d1 100644--- a/app/src/protyle/util/editorCommonEvent.ts+++ b/app/src/protyle/util/editorCommonEvent.ts@@ -1418,6 +1418,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {targetElement.classList.remove("dragover__bottom", "dragover__top", "dragover__left", "dragover__right");}} else if (!window.siyuan.dragElement && (event.dataTransfer.types[0] === "Files" || event.dataTransfer.types.includes("text/html"))) {+ event.preventDefault();// 外部文件拖入编辑器中或者编辑器内选中文字拖拽// https://github.com/siyuan-note/siyuan/issues/9544const avElement = hasClosestByClassName(event.target, "av");