Open edindino opened 7 years ago
I added sprite ../images/emoji.png but I don't know how to call it in emojify.js
function defaultReplacer(emoji, name) { /*jshint validthis: true */ var elementType = this.config.tag_type || modeToElementTagType[this.config.mode]; if (elementType !== 'img') { return "<" + elementType + " class='emoji emoji-" + name + "' title=':" + name + ":'></" + elementType + ">"; } else { return "<img align='absmiddle' alt=':" + name + ":' class='emoji' src='" + this.config.img_dir + '/' + name + ".png' title=':" + name + ":' />"; } }
@hassankhan @island205 @juanpastas
I added sprite ../images/emoji.png but I don't know how to call it in emojify.js
function defaultReplacer(emoji, name) { /*jshint validthis: true */ var elementType = this.config.tag_type || modeToElementTagType[this.config.mode]; if (elementType !== 'img') { return "<" + elementType + " class='emoji emoji-" + name + "' title=':" + name + ":'></" + elementType + ">"; } else { return "<img align='absmiddle' alt=':" + name + ":' class='emoji' src='" + this.config.img_dir + '/' + name + ".png' title=':" + name + ":' />"; } }