diff --git a/app/src/protyle/markdown/setLute.ts b/app/src/protyle/markdown/setLute.ts index d4a7a99dd..81ac7ef9b 100644 --- a/app/src/protyle/markdown/setLute.ts +++ b/app/src/protyle/markdown/setLute.ts @@ -1,5 +1,6 @@ export const setLute = (options: ILuteOptions) => { const lute: Lute = Lute.New(); + lute.SetSpellcheck(window.siyuan.config.editor.spellcheck); lute.SetProtyleMarkNetImg(window.siyuan.config.editor.displayNetImgMark); lute.SetFileAnnotationRef(true); lute.SetTextMark(true); diff --git a/app/src/protyle/util/reload.ts b/app/src/protyle/util/reload.ts index 06fafe612..b93d6713f 100644 --- a/app/src/protyle/util/reload.ts +++ b/app/src/protyle/util/reload.ts @@ -21,6 +21,7 @@ export const reloadProtyle = (protyle: IProtyle) => { } } protyle.lute.SetProtyleMarkNetImg(window.siyuan.config.editor.displayNetImgMark); + protyle.lute.SetSpellcheck(window.siyuan.config.editor.spellcheck); addLoading(protyle); if (protyle.options.backlinkData) { const isMention = protyle.element.getAttribute("data-ismention") === "true"; diff --git a/app/src/types/protyle.d.ts b/app/src/types/protyle.d.ts index 8f8dff83c..348c6f5b4 100644 --- a/app/src/types/protyle.d.ts +++ b/app/src/types/protyle.d.ts @@ -153,6 +153,8 @@ declare class Lute { public SetProtyleMarkNetImg(enable: boolean): void; + public SetSpellcheck(enable: boolean): void; + public SetFileAnnotationRef(enable: boolean): void; public SetSetext(enable: boolean): void;