mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-26 19:38:48 +01:00
🎨 Add data-id attribute to the buttons (#15967)
This commit is contained in:
parent
5e4ac24a64
commit
c00910db1a
1 changed files with 5 additions and 0 deletions
|
|
@ -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: [{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue