Add support for muted attribs on video tags. Allows autoplay to work on mobile

This commit is contained in:
Eric Schultz 2018-06-25 14:47:23 -05:00
parent 2e257aa99d
commit acae82368b

View file

@ -24,6 +24,7 @@ var froala = function($el, options) {
beautifyCode: true, beautifyCode: true,
plainPaste: true, plainPaste: true,
blockTags: {p: 'Normal', h5: "Heading", small: 'Caption'}, blockTags: {p: 'Normal', h5: "Heading", small: 'Caption'},
allowedAttrs: ["accept","accept-charset","accesskey","action","align","alt","async","autocomplete","autofocus","autoplay","autosave","background","bgcolor","border","charset","cellpadding","cellspacing","checked","cite","class","color","cols","colspan","content","contenteditable","contextmenu","controls","coords","data","data-.*","datetime","default","defer","dir","dirname","disabled","download","draggable","dropzone","enctype","for","form","formaction","headers","height","hidden","high","href","hreflang","http-equiv","icon","id","ismap","itemprop","keytype","kind","label","lang","language","list","loop","low","max","maxlength","media","method","min","multiple", "muted", "name","novalidate","open","optimum","pattern","ping","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","reversed","rows","rowspan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","span","src","srcdoc","srclang","srcset","start","step","summary","spellcheck","style","tabindex","target","title","type","translate","usemap","value","valign","width","wrap"],
imageUploadURL: '/image_attachments.json', imageUploadURL: '/image_attachments.json',
imageUploadParams: { imageUploadParams: {
authenticity_token: $("meta[name='csrf-token']").attr('content') authenticity_token: $("meta[name='csrf-token']").attr('content')