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/17098
Vanessacab8ea3a5d1b
diff --git a/app/src/protyle/render/av/render.ts b/app/src/protyle/render/av/render.tsindex 2f2b3e59f9..f41931dc13 100644--- a/app/src/protyle/render/av/render.ts+++ b/app/src/protyle/render/av/render.ts@@ -103,7 +103,7 @@ export const genTabHeaderHTML = (data: IAV, showSearch: boolean, editable: boole<svg><use xlink:href="#iconSearch"></use></svg></button><div style="position: relative" class="fn__flex">- <div contenteditable="true" style="${showSearch ? "width:128px" : "width:0;padding-left: 0;padding-right: 0;"}" data-type="av-search" class="b3-text-field b3-text-field--text" placeholder="${window.siyuan.languages.search}"></div>+ <div contenteditable="plaintext-only" style="${showSearch ? "width:128px" : "width:0;padding-left: 0;padding-right: 0;"}" data-type="av-search" class="b3-text-field b3-text-field--text" placeholder="${window.siyuan.languages.search}"></div></div><div class="fn__space"></div><span data-type="av-more" aria-label="${window.siyuan.languages.config}" data-position="8south" class="ariaLabel block__icon">diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex f91efd3b88..3ffc21d8b0 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -2387,7 +2387,7 @@ export class WYSIWYG {this.element.addEventListener("paste", (event: ClipboardEvent & { target: HTMLElement }) => {// https://github.com/siyuan-note/siyuan/issues/11241- if (event.target.getAttribute("data-type") === "av-search") {+ if (hasClosestByAttribute(event.target, "data-type", "av-search")) {return;}if (protyle.disabled) {diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.tsindex 4211957498..0da83811a1 100644--- a/app/src/protyle/wysiwyg/keydown.ts+++ b/app/src/protyle/wysiwyg/keydown.ts@@ -97,7 +97,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {event.stopPropagation();return;}- if (event.target.getAttribute("data-type") === "av-search") {+ if (hasClosestByAttribute(event.target, "data-type", "av-search")) {if (matchHotKey("⌘A", event)) {event.preventDefault();getSelection().getRangeAt(0).selectNodeContents(event.target);