Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: fix https://github.com/siyuan-note/siyuan/issues/9785

Vanessa6290c585e25b
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 75ba5e7bad..e3d9fc5925 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -2121,6 +2121,8 @@ export class WYSIWYG {
protyle.toolbar.render(protyle, newRange);
} else {
hideElements(["toolbar"], protyle);
+ // https://github.com/siyuan-note/siyuan/issues/9785
+ protyle.toolbar.range = newRange;
}
/// #endif
if (!protyle.wysiwyg.element.querySelector(".protyle-wysiwyg--select")) {