-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Confusing characters after transform emoji using text-transformation #3147
Comments
You need very specific content to reproduce it. You can reproduce it with:
But it enough to remove a letter (any letter) form the first sentence and the bug does not appear anymore. Magic. |
And bug doesn't occur when you add an emoji in the middle of a paragraph. It also occurs for headings. |
Also, you need to add an emoji at the end of the first paragraph, after the bolded text. It does not occur when you add it in the middle of the paragraph. |
If it starts to happen at 148 characters, my guess will be the |
BTW it's a cross-browser bug. |
Looks like multi-byte characters may be a problem here. When the paragraph is long enough and you start to type after a multi-byte character (It doesn't have to be directly after but in the same paragraph) then a character before the selection is inserted instead of a character you type. This may explain this weird � character because it's only one byte from a multi-byte character. |
I found a working solution: These two commits make sure both |
Fix: Fixed various cases with typing multi-byte unicode sequences (e.g. emojis). Closes ckeditor/ckeditor5#3147. Closes ckeditor/ckeditor5#6495.
Steps to reproduce:
:tada:
and then push space a few times.The text was updated successfully, but these errors were encountered: