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

.run not working with sprites? #153

Open
g8d3 opened this issue Oct 1, 2015 · 0 comments
Open

.run not working with sprites? #153

g8d3 opened this issue Oct 1, 2015 · 0 comments

Comments

@g8d3
Copy link

g8d3 commented Oct 1, 2015

Hi,

I have:

emojify.setConfig
    mode: 'sprite'
    img_dir: '/images/emojis'
emojify.run()
<span class='emoji emoji-smile' title=':smile:'></span>
<div> :)</div>

When I load the page the first gets replaced by smile image. The other does not.

Even when I run on console emojify.run(), the second one does not change, any advice?

Also, I noticed in browser console that img_dir when using sprite is not used, since span uses this property background-image: url(../../images/sprites/emojify-emoticons.png);, i.e. not /images/emojis....

Regards.

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