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: clearSelect(["cell"], avElement);
Vanessa1f50b8070150
diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.tsindex ec205c6c41..f935c659b0 100644--- a/app/src/protyle/util/editorCommonEvent.ts+++ b/app/src/protyle/util/editorCommonEvent.ts@@ -1185,29 +1185,9 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {}dragUpload(files, protyle, cellElement);/// #else- const blockElement = hasClosestBlock(cellElement);- if (blockElement) {- const files = event.dataTransfer.files;- uploadFiles(protyle, files, undefined, (res) => {- const resData = JSON.parse(res);- const value: IAVCellAssetValue[] = [];- Object.keys(resData.data.succMap).forEach((key) => {- value.push({- name: key,- content: resData.data.succMap[key],- type: Constants.SIYUAN_ASSETS_IMAGE.includes(pathPosix().extname(resData.data.succMap[key]).toLowerCase()) ? "image" : "file"- });- });- updateAssetCell({- protyle,- cellElements: [cellElement],- addValue: value,- blockElement- });- });- }+ focusBlock(hasClosestBlock(cellElement));+ uploadFiles(protyle, event.dataTransfer.files, undefined);/// #endif- clearSelect(["cell"], avElement);}}}