-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Weird issues with formatted text deletion #824
Comments
Thanks for the report! I think this commit bfee0cb also fixed this issue and should be in the next release. |
In build from current |
Sorry I did not notice you had different expected behaviors for backspace and delete. I do not agree with this. Most rich text editors do not treat links to be atomic and non to my knowledge exhibit different behavior for backspace and delete. The expected behavior for Quill is that links are not atomic and consistent between backspace and delete: delete removes the character after the cursor, backspace removes the character before the cursor. You may add a custom keybindings to Keyboard if you wish to modify this. |
Ah I see thank you for the clarification. |
Cursor position is incorrect when deleting formatted text.
Steps for Reproduction
Visit beta.quill.js
put cursor at the beginnig of
open source
link in second paragraph and hit DEL.Expected behavior: first symbol of the link deleted, cursor position preserved
Actual behavior: first symbol of the link deleted but cursor position changed
put cursor at the end of
open source
link in second paragraph and delete link with BACKSPACE.Expected behavior: link deleted, cursor position preserved
Actual behavior: cursor position changing after last symbol of the link deleted (reproducible in all browsers except Chrome)
Platforms: Firefox 49.0a2, Firefox 47.0.1, Chrome 52.0.2743.82 on OS X, IE 11, Edge on Windows 8
Version: 1.0.0-beta.9
The text was updated successfully, but these errors were encountered: