-
-
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
Backspace/delete should be blocked if the editor is read only #4577
Comments
Could you explain the integration with the command a little bit more? |
The backspace/delete support for widgets is implemented in |
Some idea: command's |
This should work, but taken that the keydown listener handles 3 types of actions now (delete, select all, arrows) we need to fix the keydown listener anyway. In general, it would be good if this code plugged into the command. But that's a too big task for this ticket. |
Ok, so do we have some plan? Or should I fix the bug the easiest way? |
That's the plan – easiest correct way. |
Fix: <kbd>Backspace</kbd> and <kbd>Delete</kbd> should not delete a widget when the editor is in the read-only mode. Closes #6.
Reported in https://github.com/ckeditor/ckeditor5-typing/issues/109.
Interestingly, if the widget feature extended the command instead of handling the feature, the problem would not exist, so it'd be worth checking if that's possible.
The text was updated successfully, but these errors were encountered: