Add allow autoplay attribute to editor iframe (for media plugins)
This commit is contained in:
parent
f79725ac7a
commit
54c0fda8fe
|
@ -798,7 +798,8 @@
|
||||||
iframe.allowFullscreen = true;
|
iframe.allowFullscreen = true;
|
||||||
iframe.setAttribute("allowfullscreen",""); // for IE11
|
iframe.setAttribute("allowfullscreen",""); // for IE11
|
||||||
iframe.setAttribute("onmousewheel",""); // for Safari on Mac
|
iframe.setAttribute("onmousewheel",""); // for Safari on Mac
|
||||||
|
iframe.setAttribute("allow", "autoplay");
|
||||||
|
|
||||||
if (config.type == "mobile")
|
if (config.type == "mobile")
|
||||||
{
|
{
|
||||||
iframe.style.position = "fixed";
|
iframe.style.position = "fixed";
|
||||||
|
|
Loading…
Reference in a new issue