mervick / emojionearea

Emoji Picker Plugin for jQuery
https://jsfiddle.net/mervick/1v03Lqnu/765/
MIT License
953 stars 257 forks source link

Unexpected token '<' #457

Open ahmerkhan357 opened 11 months ago

ahmerkhan357 commented 11 months ago

Uncaught SyntaxError: Unexpected token '<' (at jquery.textcomplete.js:1:1)

When the emojionearea.min.js file is loading this function breaking

editor.textcomplete([ { id: css_class, match: /\B(:[-+\w]*)$/, search: function (term, callback) { callback($.map(map, function (emoji) { return emoji.indexOf(term) === 0 ? emoji : null; })); }, template: function (value) { return shortnameTo(value, self.emojiTemplate) + " " + value.replace(/:/g, ''); }, replace: function (value) { return shortnameTo(value, self.emojiTemplate); }, cache: true, index: 1 } ], textcompleteOptions);