Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5-bin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
erp5-bin
Commits
c510cfd6
Commit
c510cfd6
authored
Jan 25, 2021
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_notebook: iframe attributes in jsmd viewer
parent
74ff7038
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_viewer.js.js
...eItem/portal_skins/erp5_notebook/gadget_jsmd_viewer.js.js
+2
-0
No files found.
bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_viewer.js.js
View file @
c510cfd6
...
@@ -77,6 +77,8 @@
...
@@ -77,6 +77,8 @@
iframe
.
setAttribute
(
"
sandbox
"
,
"
allow-scripts allow-same-origin
"
);
iframe
.
setAttribute
(
"
sandbox
"
,
"
allow-scripts allow-same-origin
"
);
// iframe.setAttribute("csp", "default-src *; script-src * 'unsafe-inline';");
// iframe.setAttribute("csp", "default-src *; script-src * 'unsafe-inline';");
// iframe.setAttribute("src", evt.target.result);
// iframe.setAttribute("src", evt.target.result);
iframe
.
setAttribute
(
'
id
'
,
'
jsmd_eval_notebook
'
);
iframe
.
setAttribute
(
'
name
'
,
'
jsmd_eval_notebook
'
);
iframe
.
setAttribute
(
"
srcdoc
"
,
doc
.
documentElement
.
outerHTML
);
iframe
.
setAttribute
(
"
srcdoc
"
,
doc
.
documentElement
.
outerHTML
);
gadget
.
element
.
innerHTML
=
iframe
.
outerHTML
;
gadget
.
element
.
innerHTML
=
iframe
.
outerHTML
;
gadget
.
element
.
prepend
(
loading_spinner
);
gadget
.
element
.
prepend
(
loading_spinner
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment