Commit c510cfd6 authored by Roque's avatar Roque

erp5_notebook: iframe attributes in jsmd viewer

parent 74ff7038
......@@ -77,6 +77,8 @@
iframe.setAttribute("sandbox", "allow-scripts allow-same-origin");
// iframe.setAttribute("csp", "default-src *; script-src * 'unsafe-inline';");
// iframe.setAttribute("src", evt.target.result);
iframe.setAttribute('id', 'jsmd_eval_notebook');
iframe.setAttribute('name', 'jsmd_eval_notebook');
iframe.setAttribute("srcdoc", doc.documentElement.outerHTML);
gadget.element.innerHTML = iframe.outerHTML;
gadget.element.prepend(loading_spinner);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment