Skip to content

Commit 4ace91a

Browse files
committed
fix: strict sanitize
1 parent 1157a7b commit 4ace91a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/EditorJSStyle.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ class EditorJSStyle implements InlineTool {
1212

1313
static get sanitize() {
1414
return {
15-
'editorjs-style': true,
15+
'editorjs-style': {
16+
class: true,
17+
id: true,
18+
style: true,
19+
},
1620
};
1721
}
1822

0 commit comments

Comments
 (0)