mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-25 16:34:06 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
7a7af86b11
10 changed files with 39 additions and 19 deletions
|
|
@ -76,6 +76,13 @@ export const exportConfig = {
|
|||
</div>
|
||||
<input class="b3-text-field fn__flex-center fn__size200" id="pdfFooter">
|
||||
</label>
|
||||
<label class="fn__flex b3-label config__item">
|
||||
<div class="fn__flex-1">
|
||||
${window.siyuan.languages.export25}
|
||||
<div class="b3-label__text">${window.siyuan.languages.export26}</div>
|
||||
</div>
|
||||
<input class="b3-text-field fn__flex-center fn__size200" id="docxTemplate" placeholder="F:\\template.docx">
|
||||
</label>
|
||||
<label class="fn__flex b3-label config__item">
|
||||
<div class="fn__flex-1">
|
||||
${window.siyuan.languages.export13}
|
||||
|
|
@ -127,6 +134,7 @@ export const exportConfig = {
|
|||
</label>`;
|
||||
},
|
||||
bindEvent: () => {
|
||||
(exportConfig.element.querySelector("#docxTemplate") as HTMLInputElement).value = window.siyuan.config.export.docxTemplate;
|
||||
(exportConfig.element.querySelector("#pdfFooter") as HTMLInputElement).value = window.siyuan.config.export.pdfFooter;
|
||||
(exportConfig.element.querySelector("#blockRefTextLeft") as HTMLInputElement).value = window.siyuan.config.export.blockRefTextLeft;
|
||||
(exportConfig.element.querySelector("#blockRefTextRight") as HTMLInputElement).value = window.siyuan.config.export.blockRefTextRight;
|
||||
|
|
@ -142,6 +150,7 @@ export const exportConfig = {
|
|||
blockEmbedMode: parseInt((exportConfig.element.querySelector("#blockEmbedMode") as HTMLSelectElement).value, 10),
|
||||
fileAnnotationRefMode: parseInt((exportConfig.element.querySelector("#fileAnnotationRefMode") as HTMLSelectElement).value, 10),
|
||||
pdfFooter: (exportConfig.element.querySelector("#pdfFooter") as HTMLInputElement).value,
|
||||
docxTemplate: (exportConfig.element.querySelector("#docxTemplate") as HTMLInputElement).value,
|
||||
blockRefTextLeft: (exportConfig.element.querySelector("#blockRefTextLeft") as HTMLInputElement).value,
|
||||
blockRefTextRight: (exportConfig.element.querySelector("#blockRefTextRight") as HTMLInputElement).value,
|
||||
tagOpenMarker: (exportConfig.element.querySelector("#tagOpenMarker") as HTMLInputElement).value,
|
||||
|
|
|
|||
1
app/src/types/index.d.ts
vendored
1
app/src/types/index.d.ts
vendored
|
|
@ -491,6 +491,7 @@ interface IExport {
|
|||
addTitle: boolean;
|
||||
markdownYFM: boolean;
|
||||
pdfFooter: string;
|
||||
docxTemplate: string;
|
||||
}
|
||||
|
||||
interface IEditor {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue