BREAKING CHANGE: data-mention is not used to parse a mention id or label anymore

This commit is contained in:
Philipp Kühn
2021-06-14 16:22:09 +02:00
parent 299580a77d
commit c64761a9e5
4 changed files with 7 additions and 7 deletions

View File

@@ -49,7 +49,7 @@ export const Mention = Node.create<MentionOptions>({
default: null,
parseHTML: element => {
return {
id: element.getAttribute('data-mention'),
id: element.getAttribute('data-id'),
}
},
renderHTML: attributes => {
@@ -58,7 +58,7 @@ export const Mention = Node.create<MentionOptions>({
}
return {
'data-mention': attributes.id,
'data-id': attributes.id,
}
},
},