Skip to content
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

Closed
Reinmar opened this issue Oct 31, 2016 · 5 comments · Fixed by #6066
Closed

All buttons should focus the editor before executing their commands #353

Reinmar opened this issue Oct 31, 2016 · 5 comments · Fixed by #6066
Assignees
Labels
intro Good first ticket. type:task This issue reports a chore (non-production change) and other types of "todos".

Comments

@Reinmar
Copy link
Member

Reinmar commented Oct 31, 2016

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).

@Reinmar Reinmar added status:confirmed type:task This issue reports a chore (non-production change) and other types of "todos". intro Good first ticket. labels Oct 31, 2016
@Reinmar Reinmar added this to the iteration 5 milestone Oct 31, 2016
@Reinmar Reinmar modified the milestones: iteration 5, iteration 6 Nov 28, 2016
@oleq
Copy link
Member

oleq commented Jan 17, 2017

Most likely https://github.com/ckeditor/ckeditor5-ui/issues/138 will need this to work properly.

@oleq
Copy link
Member

oleq commented Oct 15, 2019

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.

@oleq
Copy link
Member

oleq commented Oct 15, 2019

cc @mlewand

@Reinmar
Copy link
Member Author

Reinmar commented Nov 1, 2019

Moved to the "next" milestone. It's relatively cheap to fix.

@panr
Copy link
Contributor

panr commented Jan 13, 2020

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.

Reinmar added a commit to ckeditor/ckeditor5-undo that referenced this issue Jan 28, 2020
Fix: Focus the editor before executing toolbar buttons' command. See ckeditor/ckeditor5#353.
Reinmar added a commit to ckeditor/ckeditor5-restricted-editing that referenced this issue Jan 28, 2020
Fix: Focus the editor before executing toolbar buttons' command. See ckeditor/ckeditor5#353.
Reinmar added a commit to ckeditor/ckeditor5-remove-format that referenced this issue Jan 28, 2020
Fix: Focus the editor before executing toolbar buttons' command. See ckeditor/ckeditor5#353.
Reinmar added a commit to ckeditor/ckeditor5-page-break that referenced this issue Jan 28, 2020
Fix: Focus the editor before executing toolbar buttons' command. See ckeditor/ckeditor5#353.
Reinmar added a commit to ckeditor/ckeditor5-indent that referenced this issue Jan 28, 2020
Fix: Focus the editor before executing toolbar buttons' command. See ckeditor/ckeditor5#353.
Reinmar added a commit to ckeditor/ckeditor5-image that referenced this issue Jan 28, 2020
Fix: Focus the editor before executing toolbar buttons' command. See ckeditor/ckeditor5#353.
Reinmar added a commit to ckeditor/ckeditor5-horizontal-line that referenced this issue Jan 28, 2020
Fix: Focus the editor before executing toolbar buttons' command. See ckeditor/ckeditor5#353.
Reinmar added a commit to ckeditor/ckeditor5-heading that referenced this issue Jan 28, 2020
Fix: Focus the editor before executing toolbar buttons' command. See ckeditor/ckeditor5#353.
Reinmar added a commit to ckeditor/ckeditor5-block-quote that referenced this issue Jan 28, 2020
Fix: Focus the editor before executing toolbar buttons' command. See ckeditor/ckeditor5#353.
Reinmar added a commit to ckeditor/ckeditor5-basic-styles that referenced this issue Jan 28, 2020
Fix: Focus the editor before executing toolbar buttons' command. See ckeditor/ckeditor5#353.
Reinmar added a commit to ckeditor/ckeditor5-list that referenced this issue Jan 28, 2020
Fix: Focus the editor before executing toolbar buttons' command. See ckeditor/ckeditor5#353.
Reinmar added a commit that referenced this issue Jan 28, 2020
Fix: Focus the editor before executing toolbar buttons' command. Closes #353.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
intro Good first ticket. type:task This issue reports a chore (non-production change) and other types of "todos".
Projects
None yet
3 participants