Skip to content

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

Add `data-id` attribute to the buttons (#14214)

Jeffrey Chenaa5d257e1d8d
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index c6e136dd39..c7fc570e70 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -1373,6 +1373,7 @@ export class Gutter {
}
}).element);
window.siyuan.menus.menu.append(new MenuItem({
+ id: "turnInto" + (isCol ? "VLayout" : "HLayout"),
accelerator: window.siyuan.config.keymap.editor.general[isCol ? "vLayout" : "hLayout"].custom,
label: window.siyuan.languages.turnInto + " " + window.siyuan.languages[isCol ? "vLayout" : "hLayout"],
click() {