You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When writing a word quickly, Suneditor's cursor is placed before the letter, this phenomenon causes the word to be written incorrectly
Enter the following HTML in the Value textarea: <span style="font-family: "Comic Sans MS";">il giaguaro</span><p class="test" data-text="test">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean mollis porttitor massa, non tincidunt risus porttitor at. Maecenas gravida interdum augue, vitae pellentesque nibh pellentesque et. Donec ac lorem eleifend, congue mauris ut, interdum mi. Aenean blandit odio at nunc semper, non suscipit ligula bibendum. Nam hendrerit sapien id dui accumsan ultricies. Nunc laoreet est non leo tempus, et pellentesque elit varius. Morbi accumsan sit amet ante in vestibulum. Quisque congue ligula erat, nec fringilla ex vulputate non.</p>
Click on the Create button
Click inside the editor, with the focus at the end of the text
Press CTRL+A to select all the text (on Windows)
Type a word as fast as you can (e.g. Hello), you will see that the first letter of the word will be spelled correctly, then the cursor will be moved and the other letters will be written to the left, resulting in the following “elloH” for example.
Expected behavior
I would have expected that the cursor would not be repositioned and the written word would have been “Hello”
Describe the bug
When writing a word quickly, Suneditor's cursor is placed before the letter, this phenomenon causes the word to be written incorrectly
To Reproduce
Steps to reproduce the behavior:
<span style="font-family: "Comic Sans MS";">il giaguaro</span><p class="test" data-text="test">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean mollis porttitor massa, non tincidunt risus porttitor at. Maecenas gravida interdum augue, vitae pellentesque nibh pellentesque et. Donec ac lorem eleifend, congue mauris ut, interdum mi. Aenean blandit odio at nunc semper, non suscipit ligula bibendum. Nam hendrerit sapien id dui accumsan ultricies. Nunc laoreet est non leo tempus, et pellentesque elit varius. Morbi accumsan sit amet ante in vestibulum. Quisque congue ligula erat, nec fringilla ex vulputate non.</p>
Expected behavior
I would have expected that the cursor would not be repositioned and the written word would have been “Hello”
Screenshots
screen-recorder.webm
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: