Skip to content

Commit b19f9d2

Browse files
committed
Editor: allowing 'data' schema inside img tag.
1 parent ec78618 commit b19f9d2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/components/tools/Editor.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ class Editor extends React.Component<Props> {
3636
return sanitizeHtml(content, {
3737
allowedTags: false,
3838
allowedAttributes: false,
39+
allowedSchemesByTag: {
40+
img: ['data']
41+
},
3942
allowedIframeHostnames: [
4043
'youtube.com',
4144
'www.youtube.com',

0 commit comments

Comments
 (0)