🎨 Add data-id attribute to the buttons (#15967)

This commit is contained in:
Jeffrey Chen 2025-09-27 09:47:45 +08:00 committed by GitHub
parent 5e4ac24a64
commit c00910db1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: [{