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

The .run operation is not being performed successfully #175

Open
tkshnwesper opened this issue Oct 23, 2016 · 1 comment
Open

The .run operation is not being performed successfully #175

tkshnwesper opened this issue Oct 23, 2016 · 1 comment

Comments

@tkshnwesper
Copy link

I use the run operation on a container with id=app, just like how it is shown in the example:

emojify.run(document.getElementById('app'));

That doesn't work. But this does:

$("#app").html(emojify.replace($("#app").html()));

In any case, it would be better if the .run method just worked, since I feel there is a larger overhead in the work around.

@iacchus
Copy link

iacchus commented Jun 1, 2017

Same here, but your solution works for me as well, thank you..

Also, if you have various elements you can use:

$(".post-content").each(function(){
        $(this).html(emojify.replace($(this).html()))
});

Change .post-element to your elements' class.

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

2 participants