-
-
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
All buttons should focus the editor before executing their commands #353
Comments
Most likely https://github.com/ckeditor/ckeditor5-ui/issues/138 will need this to work properly. |
A problem was also spotted when reviewing ckeditor/ckeditor5-ui#523. It is more visible now since we have toolbars within dropdowns. It also got more complicated:
We need to sort this out because it is getting out of control. |
cc @mlewand |
Moved to the "next" milestone. It's relatively cheap to fix. |
Ready to review. As this is my first multi-repo task, probably PR naming and commit msgs are too generic... If so, please let me know and I'll fix it. |
Fix: Focus the editor before executing toolbar buttons' command. See ckeditor/ckeditor5#353.
Fix: Focus the editor before executing toolbar buttons' command. See ckeditor/ckeditor5#353.
Fix: Focus the editor before executing toolbar buttons' command. See ckeditor/ckeditor5#353.
Fix: Focus the editor before executing toolbar buttons' command. See ckeditor/ckeditor5#353.
Fix: Focus the editor before executing toolbar buttons' command. See ckeditor/ckeditor5#353.
Fix: Focus the editor before executing toolbar buttons' command. See ckeditor/ckeditor5#353.
Fix: Focus the editor before executing toolbar buttons' command. See ckeditor/ckeditor5#353.
Fix: Focus the editor before executing toolbar buttons' command. See ckeditor/ckeditor5#353.
Fix: Focus the editor before executing toolbar buttons' command. See ckeditor/ckeditor5#353.
Fix: Focus the editor before executing toolbar buttons' command. See ckeditor/ckeditor5#353.
Fix: Focus the editor before executing toolbar buttons' command. See ckeditor/ckeditor5#353.
Fix: Focus the editor before executing toolbar buttons' command. Closes #353.
Otherwise, the command will be applied, but it may look odd or be invisible to the user because there won't be a blinking caret. For example, bold may be applied on a collapsed selection and that won't have any effect in fact.
Note: this will be consistent wth CKE4, but with that difference that now it's not the command's role to focus the editor. The UI (button) cares about its action which consists of two things – UI (focus) and document action (command).
The text was updated successfully, but these errors were encountered: