Skip to content

Commit

Permalink
config: explicitly allow data attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
bddjong committed May 16, 2024
1 parent 5bb8fda commit 3884f02
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ const WysiwygContent = ({
if (settings.other.saveJson) {
onChange({ target: { name, value: JSON.stringify(editor.getJSON()) } });
} else {
onChange({ target: { name, value: sanitize(editor.getHTML()) } });
onChange({ target: { name, value: sanitize(editor.getHTML(), { ALLOW_DATA_ATTR: true }) } });
}
},
});
Expand Down

0 comments on commit 3884f02

Please sign in to comment.