Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/15036

Vanessa600f2189103e
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index 8283172416..bd2aacbb40 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -1289,6 +1289,13 @@ export class Gutter {
}
}]);
if (type === "NodeAttributeView") {
+ copyMenu.splice(6, 0, {
+ iconHTML: "",
+ label: window.siyuan.languages.copyAVID,
+ click() {
+ writeText(nodeElement.getAttribute("data-av-id"));
+ }
+ });
copyMenu.push({
id: "duplicateCompletely",
iconHTML: "",
@@ -1519,13 +1526,6 @@ export class Gutter {
}
} else if (type === "NodeAttributeView") {
window.siyuan.menus.menu.append(new MenuItem({id: "separator_exportCSV", type: "separator"}).element);
- window.siyuan.menus.menu.append(new MenuItem({
- icon: "iconCopy",
- label: window.siyuan.languages.copyAVID,
- click() {
- writeText(nodeElement.getAttribute("data-av-id"));
- }
- }).element);
window.siyuan.menus.menu.append(new MenuItem({
id: "exportCSV",
icon: "iconDatabase",