From 299580a77d4ae7a36685ed96b2b5df2ceef1d981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Mon, 14 Jun 2021 16:17:13 +0200 Subject: [PATCH] code style --- packages/extension-mention/src/mention.ts | 2 ++ 1 file changed, 2 insertions(+) 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, }