-
Notifications
You must be signed in to change notification settings - Fork 94
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
strange 📷 appears when paste text #104
Comments
could you intercept your paste function to check what the incoming HTML string is in your case, then send that and the resulting (raw) content state that |
Hi. Sorry for late answer. Here are both logs:
|
By the way, the 📷 symbol doesn't appear in draft editor instantly. It appears only after |
@optimatex when looking in the draft source recently i came across facebookarchive/draft-js#1378 - i think this is the culprit (and is a relief because a specific emoji appearing sounded mystifying). my guess is that your paste handler isn't properly preventing the default draft-js paste behavior and it gets added by the built-in |
Hello. I was trying to use draft-convert to transform HTML to content when user paste text.
Here is my current code:
As you can see, I try to return null if this is pasted image. But it doesn't works. As the result I got 📷 symbol instead of images.
How can I handle this? Maybe there is some way to escape this symbol?
The text was updated successfully, but these errors were encountered: