This commit is contained in:
Andrey Azarko 2018-06-17 01:06:18 +03:00
parent 4f20732e3c
commit 9ba985a688
2 changed files with 16 additions and 0 deletions

View File

@ -74,6 +74,14 @@ use yii\helpers\Url;
// reset query count
query.length = 0;
}
},
beforeInsert: function(value, $li) {
if ($li.data('item-data').link == undefined) {
return "";
}
else {
return value;
}
}
}
}).atwho({

View File

@ -437,6 +437,14 @@ humhub.module('ui.richtext', function(module, require, $) {
// reset query count
query.length = 0;
}
},
beforeInsert: function(value, $li) {
if ($li.data('item-data').link == undefined) {
return "";
}
else {
return value;
}
}
}
};