diff --git a/packages/extension-mention/src/mention.ts b/packages/extension-mention/src/mention.ts index 047fe26c..9fea4afa 100644 --- a/packages/extension-mention/src/mention.ts +++ b/packages/extension-mention/src/mention.ts @@ -62,6 +62,7 @@ export const Mention = Node.create({ } }, }, + label: { default: null, parseHTML: element => { @@ -73,6 +74,7 @@ export const Mention = Node.create({ if (!attributes.label) { return {} } + return { 'data-label': attributes.label, }