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

How to use twemoji for input field #620 #45

Open
vindhya124 opened this issue Jul 6, 2023 · 1 comment
Open

How to use twemoji for input field #620 #45

vindhya124 opened this issue Jul 6, 2023 · 1 comment

Comments

@vindhya124
Copy link

Twemoji works for fields like span and h1 tags but how can we use to replace the emoji 14.0 in input field.

Appreciate your help in advance.

Thanks

@jdecked
Copy link
Owner

jdecked commented Jul 6, 2023

It's substantially more complicated a problem than it first appears. Check out either draft-js or its newer sibling Lexical, both by Facebook – the problem is, emoji can contain multiple codepoints and you need to figure out how to position the cursor appropriately so it appears seamless to the user. Both of those libraries help you do that and replacing emoji are used as examples in their docs.

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

2 participants