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/17057
Vanessae1c9c4b1d5e0
diff --git a/app/src/protyle/ui/initUI.ts b/app/src/protyle/ui/initUI.tsindex bb92ae7a7f..c7a7869829 100644--- a/app/src/protyle/ui/initUI.ts+++ b/app/src/protyle/ui/initUI.ts@@ -22,6 +22,7 @@ import {hasClosestByTag,isInEmbedBlock} from "../util/hasClosest";+import {hideElements} from "./hideElements";export const initUI = (protyle: IProtyle) => {protyle.contentElement = document.createElement("div");@@ -121,6 +122,7 @@ export const initUI = (protyle: IProtyle) => {}, Constants.TIMEOUT_LOAD);}, {passive: true});protyle.contentElement.addEventListener("click", (event: MouseEvent & { target: HTMLElement }) => {+ hideElements(["hint", "util"], protyle);// wysiwyg 元素下方点击无效果 https://github.com/siyuan-note/siyuan/issues/12009if (protyle.disabled ||// 选中块时,禁止添加空块 https://github.com/siyuan-note/siyuan/issues/13905diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex 3ffc21d8b0..cac174a99d 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -2616,7 +2616,6 @@ export class WYSIWYG {event});});- hideElements(["hint", "util"], protyle);const ctrlIsPressed = isOnlyMeta(event);const backlinkBreadcrumbItemElement = hasClosestByClassName(event.target, "protyle-breadcrumb__item");if (backlinkBreadcrumbItemElement) {