From 5e657df0150d034712d76d1aea959fe27127310b Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Thu, 10 Oct 2024 10:53:40 +0800 Subject: [PATCH] :bug: The `Allow execution of scripts within HTML blocks` option cannot be enabled on mobile https://github.com/siyuan-note/siyuan/issues/12744 --- app/src/mobile/settings/editor.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/mobile/settings/editor.ts b/app/src/mobile/settings/editor.ts index 73747f77c..d9ef8596d 100644 --- a/app/src/mobile/settings/editor.ts +++ b/app/src/mobile/settings/editor.ts @@ -22,6 +22,7 @@ const setEditor = (modelMainElement: Element) => { inlineTag: (modelMainElement.querySelector("#editorMarkdownInlineTag") as HTMLInputElement).checked, inlineMath: (modelMainElement.querySelector("#editorMarkdownInlineMath") as HTMLInputElement).checked }; + window.siyuan.config.editor.allowHTMLBLockScript = (modelMainElement.querySelector("#allowHTMLBLockScript") as HTMLInputElement).checked; window.siyuan.config.editor.dynamicLoadBlocks = dynamicLoadBlocks; window.siyuan.config.editor.justify = (modelMainElement.querySelector("#justify") as HTMLInputElement).checked; window.siyuan.config.editor.rtl = (modelMainElement.querySelector("#rtl") as HTMLInputElement).checked;