Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/14226

Vanessad86698663a9e
diff --git a/app/src/protyle/ui/initUI.ts b/app/src/protyle/ui/initUI.ts
index 91d53860ef..d12c6a0751 100644
--- a/app/src/protyle/ui/initUI.ts
+++ b/app/src/protyle/ui/initUI.ts
@@ -176,6 +176,10 @@ export const initUI = (protyle: IProtyle) => {
// attr
const attrElement = hasClosestByClassName(event.target, "protyle-attr");
if (attrElement && !attrElement.parentElement.classList.contains("protyle-title")) {
+ const hlElement = protyle.wysiwyg.element.querySelector(".protyle-wysiwyg--hl");
+ if (hlElement) {
+ hlElement.classList.remove("protyle-wysiwyg--hl");
+ }
overAttr = true;
attrElement.parentElement.classList.add("protyle-wysiwyg--hl");
return;
@@ -236,7 +240,7 @@ export const initUI = (protyle: IProtyle) => {
}
// 面包屑
- /// if !MOBILE
+ /// #if !MOBILE
if (protyle.selectElement.classList.contains("fn__none")) {
const svgElement = hasClosestByAttribute(event.target, "data-node-id", null);
if (svgElement && svgElement.parentElement.classList.contains("protyle-breadcrumb__bar")) {