瀏覽代碼

:bug: The `Allow execution of scripts within HTML blocks` option cannot be enabled on mobile https://github.com/siyuan-note/siyuan/issues/12744

Daniel 9 月之前
父節點
當前提交
5e657df015
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/src/mobile/settings/editor.ts

+ 1 - 0
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;