From 5a7f72c9f94591ed5a2330aaea3a6c4c489bd08f Mon Sep 17 00:00:00 2001 From: James Allen Date: Thu, 20 Dec 2018 15:31:39 +0000 Subject: [PATCH] Merge pull request #1302 from sharelatex/jel-cms-iframe-attr Allow style attribute on iframes GitOrigin-RevId: f6a88f544eab665fecc00b8c89e87d489f39b88d --- services/web/config/settings.defaults.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/web/config/settings.defaults.coffee b/services/web/config/settings.defaults.coffee index 4255bbbf47..243b69bd8f 100644 --- a/services/web/config/settings.defaults.coffee +++ b/services/web/config/settings.defaults.coffee @@ -488,7 +488,7 @@ module.exports = settings = # currentImage: "texlive-full:2017.1" # imageRoot: "" # without any trailing slash - + # allowedImageNames: [ # {imageName: 'texlive-full:2017.1', imageDesc: 'TeXLive 2017'} # {imageName: 'wl_texlive:2018.1', imageDesc: 'Legacy OL TeXLive 2015'} @@ -501,7 +501,7 @@ module.exports = settings = # ---------- modules: sanitize: - options: + 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', 'span', 'source', 'video' ] allowedAttributes: 'a': [ 'href', 'name', 'target', 'class', 'event-tracking', 'event-tracking-ga', 'event-tracking-label', 'event-tracking-trigger' ] @@ -514,7 +514,7 @@ module.exports = settings = 'h6': [ 'class', 'id' ] 'figure': [ 'class', 'id', 'style'] 'figcaption': [ 'class', 'id', 'style'] - 'iframe': [ 'allowfullscreen', 'frameborder', 'height', 'src', 'width' ] + 'iframe': [ 'allowfullscreen', 'frameborder', 'height', 'src', 'style', 'width' ] 'img': [ 'alt', 'class', 'src', 'style' ] 'source': [ 'src', 'type' ] 'span': [ 'class', 'id', 'style' ]