From 9ed204fa72e13aadeb2637bcab7c28234bebd614 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Tue, 16 Apr 2019 18:19:29 +0200 Subject: [PATCH] Open mentioning link in new tab This will help some people not to loose data after accidently clicking on the user @-mentioning. --- webapp/components/Editor/nodes/Mention.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/components/Editor/nodes/Mention.js b/webapp/components/Editor/nodes/Mention.js index f86f20bd9..134fdc64b 100644 --- a/webapp/components/Editor/nodes/Mention.js +++ b/webapp/components/Editor/nodes/Mention.js @@ -15,7 +15,8 @@ export default class Mention extends TipTapMention { 'a', { class: this.options.mentionClass, - href: node.attrs.url + href: node.attrs.url, + target: '_blank' }, `${this.options.matcher.char}${node.attrs.label}` ]