Skip to content

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

:art: Add `data-id` attribute to the buttons (#15967)

Jeffrey Chenc00910db1a20
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index abc279dd5f..3725a4ba87 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -1629,6 +1629,7 @@ export class Gutter {
label: window.siyuan.languages.headingEmbedMode,
type: "submenu",
submenu: [{
+ id: "showHeadingWithBlocks",
label: window.siyuan.languages.showHeadingWithBlocks,
iconHTML: "",
checked: nodeElement.getAttribute("custom-heading-mode") === "0",
@@ -1642,6 +1643,7 @@ export class Gutter {
blockRender(protyle, nodeElement);
}
}, {
+ id: "showHeadingOnlyTitle",
label: window.siyuan.languages.showHeadingOnlyTitle,
iconHTML: "",
checked: nodeElement.getAttribute("custom-heading-mode") === "1",
@@ -1655,6 +1657,7 @@ export class Gutter {
blockRender(protyle, nodeElement);
}
}, {
+ id: "showHeadingWithBlocks",
label: window.siyuan.languages.showHeadingWithBlocks,
iconHTML: "",
checked: nodeElement.getAttribute("custom-heading-mode") === "2",
@@ -1668,6 +1671,7 @@ export class Gutter {
blockRender(protyle, nodeElement);
}
}, {
+ id: "default",
label: window.siyuan.languages.default,
iconHTML: "",
checked: !nodeElement.getAttribute("custom-heading-mode"),
@@ -1875,6 +1879,7 @@ export class Gutter {
}
}
window.siyuan.menus.menu.append(new MenuItem({
+ id: "jumpTo",
type: "submenu",
label: window.siyuan.languages.jumpTo,
submenu: [{