Update emoji parser using markdown-it-emoji instead of emojify to solve issue #217

This commit is contained in:
Wu Cheng-Han
2016-10-18 16:50:58 +08:00
parent eb724b05a7
commit d44e830366
895 changed files with 27 additions and 412 deletions

View File

@@ -3732,6 +3732,8 @@ function matchInContainer(text) {
}
}
var emojify = require('emojify.js');
$(editor.getInputField())
.textcomplete([
{ // emoji strategy
@@ -3751,7 +3753,7 @@ $(editor.getInputField())
callback(list);
},
template: function (value) {
return '<img class="emoji" src="' + serverurl + '/vendor/emojify/images/' + value + '.png"></img> ' + value;
return '<img class="emoji" src="' + serverurl + '/vendor/emojify.js/dist/images/basic/' + value + '.png"></img> ' + value;
},
replace: function (value) {
return '$1:' + value + ': ';