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/6140

Vanessa020b8ab9e7c6
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts
index 31e6fbbe99..3348cc182c 100644
--- a/app/src/protyle/toolbar/index.ts
+++ b/app/src/protyle/toolbar/index.ts
@@ -2,10 +2,9 @@ import {Divider} from "./Divider";
import {Font, hasSameTextStyle, setFontStyle} from "./Font";
import {ToolbarItem} from "./ToolbarItem";
import {
- fixTableRange,
+ fixTableRange, focusBlock,
focusByRange,
focusByWbr,
- focusSideBlock,
getEditorRange,
getSelectionPosition,
setFirstNodeRange,
@@ -1044,7 +1043,8 @@ export class Toolbar {
focusByRange(this.range);
}
} else {
- focusSideBlock(renderElement);
+ focusBlock(renderElement);
+ renderElement.classList.add("protyle-wysiwyg--select");
}
}