mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-10 01:04:21 +01:00
🚨
This commit is contained in:
parent
f15b2f8666
commit
b2b1089e3d
7 changed files with 27 additions and 22 deletions
|
|
@ -11,7 +11,7 @@ export const textMenu = (target: Element) => {
|
|||
click() {
|
||||
document.execCommand("copy");
|
||||
}
|
||||
})
|
||||
});
|
||||
menu.addItem({
|
||||
label: window.siyuan.languages.selectAll,
|
||||
icon: "iconSelect",
|
||||
|
|
@ -19,8 +19,8 @@ export const textMenu = (target: Element) => {
|
|||
if (getSelection().rangeCount === 0) {
|
||||
return;
|
||||
}
|
||||
getSelection().getRangeAt(0).selectNode(target)
|
||||
getSelection().getRangeAt(0).selectNode(target);
|
||||
}
|
||||
})
|
||||
return menu
|
||||
}
|
||||
});
|
||||
return menu;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue