Skip to content

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

:bug: fix https://github.com/siyuan-note/siyuan/issues/8356

Vanessab50dd5dca53b
diff --git a/app/src/protyle/util/resize.ts b/app/src/protyle/util/resize.ts
index fd842d5f76..26a6650b18 100644
--- a/app/src/protyle/util/resize.ts
+++ b/app/src/protyle/util/resize.ts
@@ -16,7 +16,7 @@ export const resize = (protyle: IProtyle) => {
});
}
// 保持光标位置不变 https://ld246.com/article/1673704873983/comment/1673765814595#comments
- if (protyle.toolbar.range) {
+ if (!protyle.disabled && protyle.toolbar.range) {
let rangeRect = protyle.toolbar.range.getBoundingClientRect();
if (rangeRect.height === 0) {
const blockElement = hasClosestBlock(protyle.toolbar.range.startContainer);