此插件有问题 https://www.jqueryscript.net/form/Twitter-Like-Mentions-Auto-Suggesting-Plugin-with-jQuery-Bootstrap-Suggest.html 我无法使其与div插件中的tex区域集成 https://www.jqueryscript.net/text/WYSIWYG-Emoji-Converter-Picker-Plugin-For-jQuery-EmojiOne-Area.html 我无法将第一个插件与第二个插件集成,这是代码
$('#example2').suggest('@', {
data: function(q) {
if (q) {
return $.getJSON('/status/mention/mention.php', {
q: q
}).then(function(Response) {
return Response.users
});
}
},
map: function(user) {
return {
value: user.username,
text: '<strong>' + user.foto + '</strong> <small>' + user.username + '</small>'
}
}
});
文件撤回
这些是第一个插件的文件,但是正如我所说的,它在文本区域div下没有显示结果,我该如何解决?
texarea转换
<div class="emojionearea-editor" contenteditable="true" placeholder="" tabindex="0" dir="ltr" spellcheck="false" autocomplete="on" autocorrect="on" autocapitalize="off">@costa</div>