From b77c8cec419164e5f6e117a098346cceb11dc6bb Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Tue, 27 Nov 2018 12:15:26 -0600 Subject: [PATCH] Now you can add muted to videos in Froala so they can autoplay properly on mobile --- client/js/common/editor/froala.es6 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/js/common/editor/froala.es6 b/client/js/common/editor/froala.es6 index 0cc69683..329a8b9d 100644 --- a/client/js/common/editor/froala.es6 +++ b/client/js/common/editor/froala.es6 @@ -107,7 +107,8 @@ var froala = function($el, options) { refresh: function () { } }, - } + }, + videoAllowedAttrs: ["src","width","height","frameborder","allowfullscreen","webkitallowfullscreen","mozallowfullscreen","href","target","id","controls","value","name", "autoplay", "loop", "muted"] }) $('.froala-popup').parents('.froala-editor').css('z-index', 99999)