1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-13 21:26:28 +02:00

[ticket/13713] Implement mention BBCode

PHPBB3-13713
This commit is contained in:
lavigor
2018-05-30 20:52:35 +03:00
committed by Marc Alexander
parent 86b5fbed38
commit 41b1b32e29
5 changed files with 77 additions and 9 deletions

View File

@ -388,6 +388,7 @@ function getCaretPosition(txtarea) {
function handle_mentions(txtarea) {
$(txtarea).atwho({
at: "@",
insertTpl: "[mention ${param}=${id}]${name}[/mention]",
callbacks: {
remoteFilter: function(query, callback) {
$.getJSON(mention_url, {keyword: query, topic_id: mention_topic_id}, function (data) {