This commit is contained in:
Daniel 2024-04-22 14:15:40 +08:00
parent a5f9771e03
commit 4ee92ca6e2
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
6 changed files with 8 additions and 2 deletions

View file

@ -2,7 +2,8 @@ import {
hasClosestBlock,
hasClosestByAttribute,
hasClosestByClassName,
hasClosestByMatchTag, hasTopClosestByClassName
hasClosestByMatchTag,
hasTopClosestByClassName
} from "../protyle/util/hasClosest";
import {MenuItem} from "./Menu";
import {focusBlock, focusByRange, focusByWbr, getEditorRange, selectAll,} from "../protyle/util/selection";
@ -949,7 +950,7 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLEleme
}
}).element);
window.siyuan.menus.menu.append(new MenuItem({
label: window.siyuan.languages.copy + " PNG",
label: window.siyuan.languages.copyAsPNG,
accelerator: window.siyuan.config.keymap.editor.general.copyBlockRef.custom,
icon: "iconImage",
click() {