diff --git a/app/src/config/editor.ts b/app/src/config/editor.ts index 0b713b6c4..4b6a95f60 100644 --- a/app/src/config/editor.ts +++ b/app/src/config/editor.ts @@ -173,6 +173,14 @@ export const editor = { + + + ${window.siyuan.languages.dynamicLoadBlocks} + ${window.siyuan.languages.dynamicLoadBlocksTip} + + + + ${window.siyuan.languages.md37} @@ -269,6 +277,7 @@ export const editor = { virtualBlockRefInclude: (editor.element.querySelector("#virtualBlockRefInclude") as HTMLInputElement).value, virtualBlockRefExclude: (editor.element.querySelector("#virtualBlockRefExclude") as HTMLInputElement).value, blockRefDynamicAnchorTextMaxLen: parseInt((editor.element.querySelector("#blockRefDynamicAnchorTextMaxLen") as HTMLInputElement).value), + dynamicLoadBlocks: parseInt((editor.element.querySelector("#dynamicLoadBlocks") as HTMLInputElement).value), codeLigatures: (editor.element.querySelector("#codeLigatures") as HTMLInputElement).checked, codeTabSpaces: parseInt((editor.element.querySelector("#codeTabSpaces") as HTMLInputElement).value), fontSize: parseInt((editor.element.querySelector("#fontSize") as HTMLInputElement).value), diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.ts index 7c1aa5789..bff54ace4 100644 --- a/app/src/types/index.d.ts +++ b/app/src/types/index.d.ts @@ -248,6 +248,7 @@ declare interface IEditor { katexMacros: string; fullWidth: boolean; floatWindowMode: number; + dynamicLoadBlocks: number; fontSize: number; generateHistoryInterval: number; historyRetentionDays: number;