Skip to content

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

:bug: gutter

Vanessa5d8e547942de
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index 2bb2badb6f..4c3093b479 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -2012,8 +2012,7 @@ export class Gutter {
public render(protyle: IProtyle, element: Element, wysiwyg: HTMLElement, target?: Element) {
// https://github.com/siyuan-note/siyuan/issues/4659
- const titleElement = wysiwyg.parentElement.querySelector(".protyle-title__input");
- if (titleElement && titleElement.getAttribute("data-render") !== "true") {
+ if (protyle.title && protyle.title.element.getAttribute("data-render") !== "true") {
return;
}
// 防止划选时触碰图标导致 hl 无法移除