mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 15:28:49 +01:00
This commit is contained in:
parent
31acfe90c6
commit
2a859ad52c
1 changed files with 4 additions and 1 deletions
|
|
@ -1498,7 +1498,10 @@ export const linkMenu = (protyle: IProtyle, linkElement: HTMLElement, focusText
|
|||
label: window.siyuan.languages.copy,
|
||||
icon: "iconCopy",
|
||||
click() {
|
||||
writeText(protyle.lute.BlockDOM2StdMd(linkElement.outerHTML));
|
||||
const range = document.createRange();
|
||||
range.selectNode(linkElement);
|
||||
focusByRange(range);
|
||||
document.execCommand("copy");
|
||||
}
|
||||
}).element);
|
||||
if (protyle.disabled) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue