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);
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);