mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-29 00:02:09 +00:00
Merge pull request #1302 from sharelatex/jel-cms-iframe-attr
Allow style attribute on iframes GitOrigin-RevId: f6a88f544eab665fecc00b8c89e87d489f39b88d
This commit is contained in:
parent
7112e65dc5
commit
5a7f72c9f9
1 changed files with 3 additions and 3 deletions
|
@ -488,7 +488,7 @@ module.exports = settings =
|
|||
|
||||
# currentImage: "texlive-full:2017.1"
|
||||
# imageRoot: "<DOCKER REPOSITORY ROOT>" # 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' ]
|
||||
|
|
Loading…
Reference in a new issue