Skip to content

Commit

Permalink
fix(fluent-editor): fix link and img render error
Browse files Browse the repository at this point in the history
  • Loading branch information
kagol committed Sep 18, 2024
1 parent 3e24748 commit 83e2362
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/renderless/src/common/xss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ let xssOptions = {
enableUrl: true,
html: {
whiteList: {
a: ['class', 'style', 'contenteditable', 'data-id', 'data-title', 'data-size', 'data-last-modified'],
a: ['class', 'style', 'contenteditable', 'data-id', 'data-title', 'data-size', 'data-last-modified', 'href'],
address: ['class', 'style'],
area: ['class', 'style'],
article: ['class', 'style'],
Expand Down Expand Up @@ -74,7 +74,7 @@ let xssOptions = {
header: ['class', 'style'],
hr: ['class', 'style'],
i: ['class', 'style', 'data-image-id', 'data-image'],
img: ['class', 'style', 'devui-editorx-image', 'style', 'data-image-id'],
img: ['class', 'style', 'devui-editorx-image', 'style', 'data-image-id', 'src'],
input: ['class', 'style', 'data-formula', 'data-link', 'data-video'],
ins: ['class', 'style'],
li: ['class', 'style'],
Expand Down

0 comments on commit 83e2362

Please sign in to comment.