diff --git a/services/web/config/settings.defaults.coffee b/services/web/config/settings.defaults.coffee index 6572b01875..9097c4e433 100644 --- a/services/web/config/settings.defaults.coffee +++ b/services/web/config/settings.defaults.coffee @@ -491,7 +491,7 @@ module.exports = settings = modules: sanitize: options: - allowedTags: [ 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol', 'nl', 'li', 'b', 'i', 'strong', 'em', 'strike', 'code', 'hr', 'br', 'div', 'table', 'thead', 'caption', 'tbody', 'tr', 'th', 'td', 'pre', 'iframe', 'img', 'figure', 'figcaption' ] + allowedTags: [ 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol', 'nl', 'li', 'b', 'i', 'strong', 'em', 'strike', 'code', 'hr', 'br', 'div', 'table', 'thead', 'caption', 'tbody', 'tr', 'th', 'td', 'pre', 'iframe', 'img', 'figure', 'figcaption', 'source', 'video' ] allowedAttributes: 'a': [ 'href', 'name', 'target', 'class' ] 'div': [ 'class', 'id', 'style' ] @@ -504,4 +504,6 @@ module.exports = settings = 'figure': [ 'class', 'id', 'style'] 'figcaption': [ 'class', 'id', 'style'] 'iframe': [ 'allowfullscreen', 'frameborder', 'height', 'src', 'width' ] - 'img': [ 'alt', 'class', 'src', 'style' ] \ No newline at end of file + 'img': [ 'alt', 'class', 'src', 'style' ] + 'source': [ 'src', 'type' ] + 'video': [ 'alt', 'class', 'controls', 'height', 'width' ] \ No newline at end of file diff --git a/services/web/public/stylesheets/app/cms-page.less b/services/web/public/stylesheets/app/cms-page.less index e6a3778cda..ce7617eec6 100644 --- a/services/web/public/stylesheets/app/cms-page.less +++ b/services/web/public/stylesheets/app/cms-page.less @@ -89,4 +89,12 @@ margin-bottom: @margin-sm; } } + + /* + videos + */ + video { + height: auto; + max-width: 100%; + } } \ No newline at end of file