Skip to content

Commit

Permalink
fix(fluent-editor): fix link/img render error (#2156)
Browse files Browse the repository at this point in the history
  • Loading branch information
kagol authored Sep 20, 2024
1 parent 1d6b6bd commit 30384d0
Show file tree
Hide file tree
Showing 2 changed files with 3 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
1 change: 1 addition & 0 deletions packages/theme/src/fluent-editor/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@
margin-right: 8px;

svg {
width: 16px;
font-size: 16px;
}

Expand Down

0 comments on commit 30384d0

Please sign in to comment.