Skip to content

Commit f546891

Browse files
committed
fix attribute parsing
1 parent 7cc46ac commit f546891

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/super-editor/src/extensions/highlight/highlight.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const Highlight = Mark.create({
1313
return {
1414
color: {
1515
default: null,
16-
parseHTML: (element) => element.getAttribute('data-color') || element.style.backgroundColor,
16+
parseDOM: (element) => element.getAttribute('data-color') || element.style.backgroundColor,
1717
renderDOM: (attributes) => {
1818
if (!attributes.color) {
1919
return {};

0 commit comments

Comments
 (0)