diff --git a/packages/extension-mention/src/mention.ts b/packages/extension-mention/src/mention.ts index 32765bb8..fa2ec538 100644 --- a/packages/extension-mention/src/mention.ts +++ b/packages/extension-mention/src/mention.ts @@ -102,7 +102,7 @@ export const Mention = Node.create({ renderHTML({ node, HTMLAttributes }) { return [ 'span', - mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), + mergeAttributes({'data-mention': ''}, this.options.HTMLAttributes, HTMLAttributes), this.options.renderLabel({ options: this.options, node,