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

picker.getText() Returns HTML with textArea input #58

Closed
DomTheShort opened this issue Jan 31, 2019 · 1 comment
Closed

picker.getText() Returns HTML with textArea input #58

DomTheShort opened this issue Jan 31, 2019 · 1 comment

Comments

@DomTheShort
Copy link

DomTheShort commented Jan 31, 2019

When I set the picker to listen on a textarea as the input, calling the picker.getText() method returns a line of html instead of returning the unicode value.

example: <span class="emoji emoji-sizer" style="background-image:url(/emoji-data/img-apple-64/1f61b.png)" data-codepoints="1f61b"></span>

I have noticed that if I change the textarea to an editable div, that this method returns unicode as expected. However, the page I'm working with already has several things relying on this textarea, and I was hoping to avoid reworking the page to work with an editable div if I don't have to.

@DomTheShort
Copy link
Author

I was able to retrieve the unicode character eventually by calling emoji.getCharacter() in the callback of the picker.

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