mirror of https://github.com/vector-im/riot-web
Merge pull request #1249 from uhoreg/imgfix1
allow width, height, alt, title attributes in imgpull/21833/head
commit
2138b4a705
|
@ -145,7 +145,7 @@ const sanitizeHtmlParams = {
|
|||
font: ['color', 'data-mx-bg-color', 'data-mx-color', 'style'], // custom to matrix
|
||||
span: ['data-mx-bg-color', 'data-mx-color', 'style'], // custom to matrix
|
||||
a: ['href', 'name', 'target', 'rel'], // remote target: custom to matrix
|
||||
img: ['src'],
|
||||
img: ['src', 'width', 'height', 'alt', 'title'],
|
||||
ol: ['start'],
|
||||
code: ['class'], // We don't actually allow all classes, we filter them in transformTags
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue