This commit is contained in:
Vanessa 2024-05-13 17:06:28 +08:00
parent f15b2f8666
commit b2b1089e3d
7 changed files with 27 additions and 22 deletions

View file

@ -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;
};