Skip to content
This repository has been archived by the owner on Oct 3, 2018. It is now read-only.

What html tag should go for sprite #179

Open
edindino opened this issue Dec 26, 2016 · 1 comment
Open

What html tag should go for sprite #179

edindino opened this issue Dec 26, 2016 · 1 comment

Comments

@edindino
Copy link

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 + ":' />"; } }

@edindino
Copy link
Author

edindino commented Dec 27, 2016

@hassankhan @island205 @juanpastas

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant