mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
adf5e3af96
commit
01dff7eb5d
1 changed files with 12 additions and 1 deletions
|
|
@ -526,7 +526,7 @@ export const exportMd = (id: string) => {
|
||||||
dialog.bindInput(inputElement, () => {
|
dialog.bindInput(inputElement, () => {
|
||||||
(btnsElement[1] as HTMLButtonElement).click();
|
(btnsElement[1] as HTMLButtonElement).click();
|
||||||
});
|
});
|
||||||
let name = replaceFileName(result.data);
|
let name = replaceFileName(result.data);
|
||||||
const maxNameLen = 32;
|
const maxNameLen = 32;
|
||||||
if (name.length > maxNameLen) {
|
if (name.length > maxNameLen) {
|
||||||
name = name.substring(0, maxNameLen);
|
name = name.substring(0, maxNameLen);
|
||||||
|
|
@ -630,6 +630,17 @@ export const exportMd = (id: string) => {
|
||||||
click: () => {
|
click: () => {
|
||||||
saveExport({type: "word", id});
|
saveExport({type: "word", id});
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
label: window.siyuan.languages.more,
|
||||||
|
icon: "iconMore",
|
||||||
|
type: "submenu",
|
||||||
|
submenu: [{
|
||||||
|
label: "Word .docx",
|
||||||
|
icon: "iconExact",
|
||||||
|
click: () => {
|
||||||
|
saveExport({type: "word", id});
|
||||||
|
}
|
||||||
|
}]
|
||||||
}
|
}
|
||||||
/// #endif
|
/// #endif
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue