This commit is contained in:
parent
1d1e224dd2
commit
c1ec8035b2
6 changed files with 31 additions and 6 deletions
|
@ -6,7 +6,7 @@
|
|||
"defBlock": "Def block",
|
||||
"defBlockChildren": "Define block and its children",
|
||||
"filter": "Filter",
|
||||
"copyHeadings": "Copy Headings and Bottom Blocks",
|
||||
"headings1": "Headings and Bottom Blocks",
|
||||
"tWithSubtitle":"Transformation with subtitles",
|
||||
"clear": "Clear",
|
||||
"autoDownloadUpdatePkg": "Automatically download update installation package",
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"defBlock": "Definir bloque",
|
||||
"defBlockChildren": "Definir bloque y sus hijos",
|
||||
"filter": "Filtro",
|
||||
"copyHeadings": "Copiar encabezados y bloques inferiores",
|
||||
"headings1": "Encabezados y bloques inferiores",
|
||||
"tWithSubtitle": "Transformación con subtítulos",
|
||||
"clear": "claro",
|
||||
"autoDownloadUpdatePkg": "Descargar automáticamente el paquete de instalación de actualizaciones",
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"defBlock": "Définir le bloc",
|
||||
"defBlockChildren": "Définir le bloc et ses enfants",
|
||||
"filter": "Filtre",
|
||||
"copyHeadings": "Copier les en-têtes et les blocs inférieurs",
|
||||
"headings1": "En-têtes et blocs inférieurs",
|
||||
"tWithSubtitle": "Transformation avec sous-titres",
|
||||
"clear": "Effacer",
|
||||
"autoDownloadUpdatePkg": "Télécharger automatiquement le package d'installation de la mise à jour",
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"defBlock": "定義塊",
|
||||
"defBlockChildren": "定義塊及其子塊",
|
||||
"filter": "過濾",
|
||||
"copyHeadings": "複製標題及下方塊",
|
||||
"headings1": "標題及下方塊",
|
||||
"tWithSubtitle": "帶子標題轉換",
|
||||
"clear": "清空",
|
||||
"autoDownloadUpdatePkg": "自動下載更新安裝包",
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"defBlock": "定义块",
|
||||
"defBlockChildren": "定义块及其子块",
|
||||
"filter": "过滤",
|
||||
"copyHeadings": "复制标题及下方块",
|
||||
"headings1": "标题及下方块",
|
||||
"tWithSubtitle": "带子标题转换",
|
||||
"clear": "清空",
|
||||
"autoDownloadUpdatePkg": "自动下载更新安装包",
|
||||
|
|
|
@ -1226,13 +1226,38 @@ export class Gutter {
|
|||
}).element);
|
||||
window.siyuan.menus.menu.append(new MenuItem({
|
||||
icon: "iconCopy",
|
||||
label: window.siyuan.languages.copyHeadings,
|
||||
label: `${window.siyuan.languages.copy} <b>${window.siyuan.languages.headings1}</b>`,
|
||||
click() {
|
||||
fetchPost("/api/block/getHeadingChildrenDOM", {id}, (response) => {
|
||||
writeText(response.data + Constants.ZWSP);
|
||||
});
|
||||
}
|
||||
}).element);
|
||||
window.siyuan.menus.menu.append(new MenuItem({
|
||||
icon: "iconCut",
|
||||
label: `${window.siyuan.languages.cut} <b>${window.siyuan.languages.headings1}</b>`,
|
||||
click() {
|
||||
fetchPost("/api/block/getHeadingChildrenDOM", {id}, (response) => {
|
||||
writeText(response.data + Constants.ZWSP);
|
||||
fetchPost("/api/block/getHeadingDeleteTransaction", {
|
||||
id,
|
||||
}, (response) => {
|
||||
transaction(protyle, response.data.doOperations, response.data.undoOperations);
|
||||
});
|
||||
});
|
||||
}
|
||||
}).element);
|
||||
window.siyuan.menus.menu.append(new MenuItem({
|
||||
icon: "iconTrashcan",
|
||||
label: `${window.siyuan.languages.delete} <b>${window.siyuan.languages.headings1}</b>`,
|
||||
click() {
|
||||
fetchPost("/api/block/getHeadingDeleteTransaction", {
|
||||
id,
|
||||
}, (response) => {
|
||||
transaction(protyle, response.data.doOperations, response.data.undoOperations);
|
||||
});
|
||||
}
|
||||
}).element);
|
||||
}
|
||||
window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
|
||||
window.siyuan.menus.menu.append(new MenuItem({
|
||||
|
|
Loading…
Add table
Reference in a new issue