An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: fix https://github.com/siyuan-note/siyuan/issues/7901
Vanessa4b542c9ff2e9
diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.tsindex 5ea7b67866..256462b48b 100644--- a/app/src/protyle/breadcrumb/index.ts+++ b/app/src/protyle/breadcrumb/index.ts@@ -335,14 +335,6 @@ export class Breadcrumb {accelerator: window.siyuan.config.keymap.editor.general.wysiwyg.custom,click: () => {setEditMode(protyle, "wysiwyg");- protyle.scroll.lastScrollTop = 0;- fetchPost("/api/filetree/getDoc", {- id: protyle.block.rootID,- size: window.siyuan.config.editor.dynamicLoadBlocks,- }, getResponse => {- onGet(getResponse, protyle);- window.siyuan.menus.menu.remove();- });}}];editSubmenu.push({diff --git a/app/src/protyle/util/setEditMode.ts b/app/src/protyle/util/setEditMode.tsindex 4b89db52af..42760637c4 100644--- a/app/src/protyle/util/setEditMode.ts+++ b/app/src/protyle/util/setEditMode.ts@@ -11,6 +11,11 @@ export const setEditMode = (protyle: IProtyle, type: TEditorMode) => {protyle.scroll?.element.classList.add("fn__none");if (protyle.options.render.breadcrumb) {protyle.breadcrumb?.element.classList.add("fn__none");+ if (protyle.block.showAll) {+ const exitFocusElement = protyle.breadcrumb.element.parentElement.querySelector('[data-type="exit-focus"]')+ exitFocusElement.classList.add("fn__none");+ exitFocusElement.nextElementSibling.classList.add("fn__none");+ }}protyle.preview.render(protyle);} else if (type === "wysiwyg") {@@ -26,7 +31,12 @@ export const setEditMode = (protyle: IProtyle, type: TEditorMode) => {}if (protyle.options.render.breadcrumb) {protyle.breadcrumb?.element.classList.remove("fn__none");+ if (protyle.block.showAll) {+ const exitFocusElement = protyle.breadcrumb.element.parentElement.querySelector('[data-type="exit-focus"]')+ exitFocusElement.classList.remove("fn__none");+ exitFocusElement.nextElementSibling.classList.remove("fn__none");+ }}}- hideElements( ["gutter", "toolbar", "select", "hint", "util"], protyle);+ hideElements(["gutter", "toolbar", "select", "hint", "util"], protyle);};