mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
4796883707
commit
8be251af00
5 changed files with 34 additions and 20 deletions
|
|
@ -431,7 +431,7 @@ export const copySubMenu = (id: string, accelerator = true, focusElement?: Eleme
|
|||
}];
|
||||
};
|
||||
|
||||
export const exportMd = (id: string) => {
|
||||
export const exportMd = (id: string, fileType = "NodeDocument") => {
|
||||
return new MenuItem({
|
||||
label: window.siyuan.languages.export,
|
||||
type: "submenu",
|
||||
|
|
@ -532,7 +532,7 @@ export const exportMd = (id: string) => {
|
|||
label: window.siyuan.languages.image,
|
||||
icon: "iconImage",
|
||||
click: () => {
|
||||
exportImage(id);
|
||||
exportImage(id, fileType);
|
||||
}
|
||||
},
|
||||
/// #if !BROWSER
|
||||
|
|
@ -540,26 +540,26 @@ export const exportMd = (id: string) => {
|
|||
label: "PDF",
|
||||
icon: "iconPDF",
|
||||
click: () => {
|
||||
saveExport({type: "pdf", id});
|
||||
saveExport({type: "pdf", id, fileType});
|
||||
}
|
||||
}, {
|
||||
label: "HTML (SiYuan)",
|
||||
iconClass: "ft__error",
|
||||
icon: "iconHTML5",
|
||||
click: () => {
|
||||
saveExport({type: "html", id});
|
||||
saveExport({type: "html", id, fileType});
|
||||
}
|
||||
}, {
|
||||
label: "HTML (Markdown)",
|
||||
icon: "iconHTML5",
|
||||
click: () => {
|
||||
saveExport({type: "htmlmd", id});
|
||||
saveExport({type: "htmlmd", id, fileType});
|
||||
}
|
||||
}, {
|
||||
label: "Word .docx",
|
||||
icon: "iconExact",
|
||||
click: () => {
|
||||
saveExport({type: "word", id});
|
||||
saveExport({type: "word", id, fileType});
|
||||
}
|
||||
}, {
|
||||
label: window.siyuan.languages.more,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue