From 91a3184d0f67ddc1b76c647b0883732ae4e8fce3 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 23 May 2024 23:45:10 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/11460 --- app/src/protyle/gutter/index.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts index 189f9998046..e3bf23bd2a8 100644 --- a/app/src/protyle/gutter/index.ts +++ b/app/src/protyle/gutter/index.ts @@ -1213,6 +1213,13 @@ export class Gutter { } const copyMenu = (copySubMenu(id, true, nodeElement) as IMenu[]).concat([{ + label: window.siyuan.languages.copyPlainText, + accelerator: window.siyuan.config.keymap.editor.general.copyPlainText.custom, + click() { + copyPlainText(getPlainText(nodeElement as HTMLElement).trimEnd()); + focusBlock(nodeElement); + } + }, { label: type === "NodeAttributeView" ? window.siyuan.languages.copyMirror : window.siyuan.languages.copy, accelerator: "⌘C", click() { @@ -1223,13 +1230,6 @@ export class Gutter { } document.execCommand("copy"); } - }, { - label: window.siyuan.languages.copyPlainText, - accelerator: window.siyuan.config.keymap.editor.general.copyPlainText.custom, - click() { - copyPlainText(getPlainText(nodeElement as HTMLElement).trimEnd()); - focusBlock(nodeElement); - } }, { label: type === "NodeAttributeView" ? window.siyuan.languages.duplicateMirror : window.siyuan.languages.duplicate, accelerator: window.siyuan.config.keymap.editor.general.duplicate.custom, @@ -1266,7 +1266,7 @@ export class Gutter { } const copyTextRefMenu = this.genCopyTextRef([nodeElement]); if (copyTextRefMenu) { - copyMenu.splice(copyMenu.length - 1, 0, copyTextRefMenu); + copyMenu.splice(7, 0, copyTextRefMenu); } window.siyuan.menus.menu.append(new MenuItem({ label: window.siyuan.languages.copy,