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: fix https://github.com/siyuan-note/siyuan/issues/7450
Vanessaa2403612579d
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex 52d412727b..25eb63c393 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -1515,6 +1515,10 @@ export class WYSIWYG {event.stopPropagation();}});+ // 面包屑定位,需至于前,否则 return 的元素就无法进行面包屑定位+ if (protyle.options.render.breadcrumb) {+ protyle.breadcrumb.render(protyle);+ }const range = getEditorRange(this.element);// 需放在嵌入块之前,否则嵌入块内的引用、链接、pdf 双链无法点击打开 https://ld246.com/article/1630479789513const blockRefElement = hasClosestByAttribute(event.target, "data-type", "block-ref");@@ -1860,6 +1864,10 @@ export class WYSIWYG {range.setStartAfter(imgElement);range.collapse(true);focusByRange(range);+ // 需等待 range 更新再次进行渲染+ if (protyle.options.render.breadcrumb) {+ protyle.breadcrumb.render(protyle);+ }return;}@@ -2052,11 +2060,6 @@ export class WYSIWYG {countBlockWord(ids);}}-- // 面包屑定位- if (protyle.options.render.breadcrumb) {- protyle.breadcrumb.render(protyle);- }});}}