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/10850#issuecomment-4747775891

Danielc71409ec42bf
diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts
index e5a6cb4e37..af4d355caf 100644
--- a/app/src/protyle/render/av/action.ts
+++ b/app/src/protyle/render/av/action.ts
@@ -569,16 +569,18 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi
});
writeText(text);
}
- }, {
- id: "duplicate",
- iconHTML: "",
- label: window.siyuan.languages.duplicate,
- click: () => {
- duplicateRows(blockElement, protyle, rowElements);
- }
});
}
+ copyMenu.push({
+ id: "duplicate",
+ iconHTML: "",
+ label: window.siyuan.languages.duplicate,
+ click: () => {
+ duplicateRows(blockElement, protyle, rowElements);
+ }
+ });
+
menu.addItem({
id: "copy",
label: window.siyuan.languages.copy,