parent
7b1c06538d
commit
662020ce68
3 changed files with 46 additions and 1 deletions
|
@ -87,7 +87,19 @@
|
|||
|
||||
this.renderControl();
|
||||
|
||||
twemoji.parse(this.el, { base: '/images/twemoji/', size: 16 });
|
||||
twemoji.parse(this.el, {
|
||||
attributes: function(icon, variant) {
|
||||
var colon = emoji_util.get_colon_from_unicode(icon);
|
||||
console.log("colon: ", colon);
|
||||
if (colon) {
|
||||
return {title: ":" + colon + ":"};
|
||||
} else {
|
||||
return {};
|
||||
}
|
||||
},
|
||||
base: '/images/twemoji/',
|
||||
size: 16
|
||||
});
|
||||
|
||||
var content = this.$('.content');
|
||||
var escaped = content.html();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue