From 54c0fda8fef8a7a227d5aeec10ff7168b0c4dcac Mon Sep 17 00:00:00 2001 From: Oleg Korshul Date: Thu, 7 Nov 2019 18:49:33 +0300 Subject: [PATCH] Add allow autoplay attribute to editor iframe (for media plugins) --- apps/api/documents/api.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/api/documents/api.js b/apps/api/documents/api.js index 8b9efb7487..ee1428a8ba 100644 --- a/apps/api/documents/api.js +++ b/apps/api/documents/api.js @@ -798,7 +798,8 @@ iframe.allowFullscreen = true; iframe.setAttribute("allowfullscreen",""); // for IE11 iframe.setAttribute("onmousewheel",""); // for Safari on Mac - + iframe.setAttribute("allow", "autoplay"); + if (config.type == "mobile") { iframe.style.position = "fixed";