BREAKING CHANGE: data-mention is not used to parse a mention id or label anymore
This commit is contained in:
@@ -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,
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user