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/18358
Vanessa45ab2e017435
diff --git a/app/src/assets/scss/util/_function.scss b/app/src/assets/scss/util/_function.scssindex 839f379012..921e7f366c 100644--- a/app/src/assets/scss/util/_function.scss+++ b/app/src/assets/scss/util/_function.scss@@ -181,7 +181,7 @@}}- &__pointer-none {+ &__pointer-none iframe {pointer-events: none;}}diff --git a/app/src/layout/util.ts b/app/src/layout/util.tsindex 29d522b277..8967252166 100644--- a/app/src/layout/util.ts+++ b/app/src/layout/util.ts@@ -921,9 +921,7 @@ export const addResize = (obj: Layout | Wnd, after = true) => {range = getSelection().getRangeAt(0);}const documentSelf = document;- documentSelf.querySelectorAll("iframe:not(.fn__pointer-none)").forEach((iframe: HTMLElement) => {- iframe.classList.add("fn__pointer-none");- });+ documentSelf.body.classList.add("fn__pointer-none");const nextElement = resizeElement.nextElementSibling as HTMLElement;const previousElement = resizeElement.previousElementSibling as HTMLElement;nextElement.style.overflow = "auto"; // 拖动时 layout__resize 会出现 https://github.com/siyuan-note/siyuan/issues/6221@@ -983,9 +981,7 @@ export const addResize = (obj: Layout | Wnd, after = true) => {};documentSelf.onmouseup = () => {- documentSelf.querySelectorAll("iframe.fn__pointer-none").forEach((iframe: HTMLElement) => {- iframe.classList.remove("fn__pointer-none");- });+ documentSelf.body.classList.remove("fn__pointer-none");documentSelf.onmousemove = null;documentSelf.onmouseup = null;documentSelf.ondragstart = null;diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex e39afba064..cbd9bc1fe3 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -1399,9 +1399,7 @@ export class WYSIWYG {const mostTop = protyleRect.top + (protyle.options.render.breadcrumb ? protyle.breadcrumb.element.parentElement.clientHeight : 0);const selectStartScrollTop = protyle.contentElement.scrollTop;let moveCellElement: HTMLElement;- this.element.querySelectorAll("iframe").forEach(item => {- item.style.pointerEvents = "none";- });+ this.element.classList.add("fn__pointer-none");// 容器类元素判断(划选时 elementFromPoint 命中它们的边缘/空白需继续探测子块)const isContainer = (el: Element) => el.classList.contains("protyle-wysiwyg") || el.classList.contains("list") ||el.classList.contains("li") || el.classList.contains("sb") ||@@ -1661,9 +1659,7 @@ export class WYSIWYG {getSelection().removeAllRanges();}protyle.wysiwyg.element.classList.remove("protyle-wysiwyg--hiderange");- this.element.querySelectorAll("iframe").forEach(item => {- item.style.pointerEvents = "";- });+ this.element.classList.remove("fn__pointer-none");protyle.selectElement.classList.add("fn__none");protyle.selectElement.removeAttribute("style");if (tableBlockElement) {