Skip to content

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

:art: 划选后 esc 用键盘选中后无选中背景 https://github.com/siyuan-note/siyuan/pull/14010

Vanessa9d7011e0759b
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 3ea0ac8a6c..a5f52816a8 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -1059,9 +1059,7 @@ export class WYSIWYG {
!selectElements[0].classList.contains("bq") && !selectElements[0].classList.contains("sb")) {
// 只有一个 p 时不选中
protyle.selectElement.style.backgroundColor = "transparent";
- protyle.wysiwyg.element.classList.remove("protyle-wysiwyg--hiderange");
} else {
- protyle.wysiwyg.element.classList.add("protyle-wysiwyg--hiderange");
selectElements.forEach(item => {
if (!hasClosestByClassName(item, "protyle-wysiwyg__embed")) {
item.classList.add("protyle-wysiwyg--select");