div中的Textarea,提及自动提示的问题

时间:2018-12-09 15:12:49

标签: jquery conflict

此插件有问题 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>'
        }
      }
});

文件撤回

enter link description here

这些是第一个插件的文件,但是正如我所说的,它在文本区域div下没有显示结果,我该如何解决? enter image description here

texarea转换

<div class="emojionearea-editor" contenteditable="true" placeholder="" tabindex="0" dir="ltr" spellcheck="false" autocomplete="on" autocorrect="on" autocapitalize="off">@costa</div>

0 个答案:

没有答案
相关问题