Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There should be a a way to Un-emojify the DOM element #30

Open
gaurav414u opened this issue Aug 21, 2017 · 0 comments
Open

There should be a a way to Un-emojify the DOM element #30

gaurav414u opened this issue Aug 21, 2017 · 0 comments

Comments

@gaurav414u
Copy link

Hi
So, while working with this library I figured out that there should be an API method to unemojify the DOM element which has the contents of ReactEmoji.emojify().
This will be very helpful in the cases where lets say we have a <div contentEditable='true'> and we are replacing every occurrence of ':annotation:' or 'emoticon (:) :D)' with the <img> tag while the user types in real-time. And when we want to compile this chat message and store it in db we can use the unemojify().
I have already added this support locally.
Let me if all of this makes sense and if I should make a pull request.
Thanks

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

No branches or pull requests

1 participant