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/15228
Vanessa3af20f388562
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.tsindex bd2aacbb40..a1da6250e8 100644--- a/app/src/protyle/gutter/index.ts+++ b/app/src/protyle/gutter/index.ts@@ -94,6 +94,11 @@ export class Gutter {return true;}});+ if (avElement.querySelector('.block__icon[data-type="av-sort"]')?.classList.contains("block__icon--active")) {+ event.preventDefault();+ event.stopPropagation();+ return;+ }const rowElement = avElement.querySelector(`.av__row[data-id="${buttonElement.dataset.rowId}"]`);rowElement.classList.add("av__row--select");rowElement.querySelector(".av__firstcol use").setAttribute("xlink:href", "#iconCheck");diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.tsindex 185bdc399e..36a32a5ecc 100644--- a/app/src/protyle/util/editorCommonEvent.ts+++ b/app/src/protyle/util/editorCommonEvent.ts@@ -855,6 +855,11 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {} else if (target.classList.contains("av__gallery-item")) {const blockElement = hasClosestBlock(target);if (blockElement) {+ if (blockElement.querySelector('.block__icon[data-type="av-sort"]')?.classList.contains("block__icon--active")) {+ event.preventDefault();+ event.stopPropagation();+ return;+ }target.classList.add("av__gallery-item--select");const ghostElement = document.createElement("div");ghostElement.className = "protyle-wysiwyg protyle-wysiwyg--attr " + target.parentElement.className;