diff --git a/app/src/constants.ts b/app/src/constants.ts index 7d9dbed0a..163b23e74 100644 --- a/app/src/constants.ts +++ b/app/src/constants.ts @@ -60,6 +60,7 @@ export abstract class Constants { public static readonly LOCAL_CODELANG = "local-codelang"; public static readonly LOCAL_FONTSTYLES = "local-fontstyles"; public static readonly LOCAL_EXPORTPDF = "local-exportpdf"; + public static readonly LOCAL_EXPORTWORD = "local-exportword"; public static readonly LOCAL_BAZAAR = "local-bazaar"; // timeout diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts index 8f0e398f2..a75f965d5 100644 --- a/app/src/protyle/export/index.ts +++ b/app/src/protyle/export/index.ts @@ -105,9 +105,38 @@ export const saveExport = (option: { type: string, id: string }) => { pdfDialog.destroy(); } }); - return; + } else if (option.type === "word") { + const localData = localStorage.getItem(Constants.LOCAL_EXPORTWORD); + const wordDialog = new Dialog({ + title: "Word " + window.siyuan.languages.config, + content: `