From fdb1d43a4e2996d414ebabc98531f93b2a2d0bba Mon Sep 17 00:00:00 2001 From: Jordan Humphreys Date: Fri, 6 Mar 2020 14:25:01 -0800 Subject: [PATCH] Allow variable mention trigger in default template. --- src/Tribute.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Tribute.js b/src/Tribute.js index 3a1b128e..4c2fe462 100755 --- a/src/Tribute.js +++ b/src/Tribute.js @@ -166,7 +166,8 @@ class Tribute { } static defaultSelectTemplate(item) { - if (typeof item === "undefined") return "@" + this.current.mentionText; + if (typeof item === "undefined") + return `${this.current.collection.trigger}${this.current.mentionText}`; if (this.range.isContentEditable(this.current.element)) { return ( '' +