From e2cebd4836a1623f53405973d03035304e72e3db Mon Sep 17 00:00:00 2001 From: Apoorv Mishra Date: Fri, 5 May 2023 19:17:25 +0530 Subject: [PATCH] fix: add data-url to mention span --- shared/editor/nodes/Mention.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/shared/editor/nodes/Mention.ts b/shared/editor/nodes/Mention.ts index 0b08506484..137a970712 100644 --- a/shared/editor/nodes/Mention.ts +++ b/shared/editor/nodes/Mention.ts @@ -67,6 +67,7 @@ export default class Mention extends Suggestion { "data-type": node.attrs.type, "data-id": node.attrs.modelId, "data-actorId": node.attrs.actorId, + "data-url": `mention://${node.attrs.id}/${node.attrs.type}/${node.attrs.modelId}`, }, node.attrs.label, ],