Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2024-04-22 14:51:30 +08:00
commit e52e783926
6 changed files with 8 additions and 2 deletions

View file

@ -1,4 +1,5 @@
{
"copyAsPNG": "Copy as PNG",
"unbindBlock": "Unbind block",
"showTitle": "Show database title",
"fillCreated": "Default fill created time",

View file

@ -1,4 +1,5 @@
{
"copyAsPNG": "Copiar como PNG",
"unbindBlock": "Desvincular bloque",
"showTitle": "Mostrar título de la base de datos",
"fillCreated": "Hora de creación del relleno predeterminado",

View file

@ -1,4 +1,5 @@
{
"copyAsPNG": "Copier en tant PNG",
"unbindBlock": "Dissocier le bloc",
"showTitle": "Afficher le titre de la base de données",
"fillCreated": "Heure de création de remplissage par défaut",

View file

@ -1,4 +1,5 @@
{
"copyAsPNG": "複製為 PNG",
"unbindBlock": "取消綁定區塊",
"showTitle": "顯示資料庫標題",
"fillCreated": "預設填滿創建時間",

View file

@ -1,4 +1,5 @@
{
"copyAsPNG": "复制为 PNG",
"unbindBlock": "取消绑定块",
"showTitle": "显示数据库标题",
"fillCreated": "默认填充创建时间",

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() {