Skip to content

Commit

Permalink
fix(editor): Enable data-* attr on links
Browse files Browse the repository at this point in the history
  • Loading branch information
cstuncsik committed Sep 17, 2024
1 parent d31540f commit 417b702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/design-system/src/directives/n8n-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ const configuredSanitize = (html: string) =>
allowedTags: sanitize.defaults.allowedTags.concat(['img', 'input']),
allowedAttributes: {
...sanitize.defaults.allowedAttributes,
img: ['src', 'srcset', 'alt', 'title', 'width', 'height', 'loading'],
input: ['type', 'id', 'checked'],
code: ['class'],
a: sanitize.defaults.allowedAttributes.a.concat(['data-*']),
},
});

Expand Down

0 comments on commit 417b702

Please sign in to comment.