iframes: add allow-forms flag; disable all pointer events when editor is enabled
This commit is contained in:
parent
75e9906d8f
commit
4946737b95
2 changed files with 5 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ class Frame extends StaticProperties(Widget, {bypass: true}) {
|
|||
|
||||
super({...options, html: html`
|
||||
<inner>
|
||||
<iframe class="frame" src="" sandbox="allow-scripts allow-same-origin"></iframe>
|
||||
<iframe class="frame" src="" sandbox="allow-scripts allow-same-origin allow-forms"></iframe>
|
||||
</inner>`
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -29,3 +29,7 @@
|
|||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
.editor-enabled .frame-container iframe {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue