From 9485a05e51b57f5b08f585c197335a3a61779efa Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 14 Nov 2023 12:09:31 +0800 Subject: [PATCH] :art: https://ld246.com/article/1699927235320 --- app/src/protyle/render/av/action.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts index 4d575e591..44dfdcf56 100644 --- a/app/src/protyle/render/av/action.ts +++ b/app/src/protyle/render/av/action.ts @@ -39,7 +39,12 @@ export const avClick = (protyle: IProtyle, event: MouseEvent & { target: HTMLEle const copyElement = hasClosestByAttribute(event.target, "data-type", "copy"); if (copyElement) { - writeText(copyElement.previousElementSibling.textContent.trim()); + const textElement = copyElement.previousElementSibling + if (textElement.querySelector(".av__cellicon")) { + writeText(`${textElement.firstChild.textContent} ➡️ ${textElement.lastChild.textContent}`); + } else { + writeText(textElement.textContent); + } showMessage(window.siyuan.languages.copied); event.preventDefault(); event.stopPropagation();