Explorar el Código

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

Daniel hace 9 meses
padre
commit
5e657df015
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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;