mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-18 04:37:51 +01:00
desktop: add menu item to copy images in editor (#4373)
This commit is contained in:
@@ -131,6 +131,17 @@ function setupMenu() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (params.mediaType === "image")
|
||||||
|
menu.append(
|
||||||
|
new MenuItem({
|
||||||
|
id: "copy-image",
|
||||||
|
label: "Copy Image",
|
||||||
|
click() {
|
||||||
|
globalThis.window?.webContents.copyImageAt(params.x, params.y);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
if (params.isEditable)
|
if (params.isEditable)
|
||||||
menu.append(
|
menu.append(
|
||||||
new MenuItem({
|
new MenuItem({
|
||||||
|
|||||||
Reference in New Issue
Block a user