🎨 桌面端和浏览器端支持英文拼写检查 https://github.com/siyuan-note/siyuan/issues/597

This commit is contained in:
Liang Ding 2022-12-30 20:43:52 +08:00
parent 456fc59c68
commit 3be30c0f28
No known key found for this signature in database
GPG Key ID: 136F30F901A2231D
3 changed files with 4 additions and 0 deletions

View File

@ -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);

View File

@ -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";

View File

@ -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;