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

Double image toolbar when ContextualToolbar plugin is loaded #5097

Closed
oskarwrobel opened this issue May 9, 2017 · 4 comments · Fixed by ckeditor/ckeditor5-image#111
Closed
Labels
package:image type:bug This issue reports a buggy (incorrect) behavior.
Milestone

Comments

@oskarwrobel
Copy link
Contributor

may-09-2017 11-19-34

@oleq
Copy link
Member

oleq commented May 9, 2017

@oskarwrobel
Copy link
Contributor Author

It is similar. Image can check if CT plugin is loaded and if it is, then uses beforeShow event to block CTof being displayed when the selection contains only image element.

@oleq
Copy link
Member

oleq commented May 9, 2017

Yes. At this stage it makes sense. But soon we'll struggle with these problems:

  1. We may support some global commands when the image is selected, like the Link. How would users link such content if there's no toolbar? Keep in mind that tables will come with similar toolbar and the problem gets quite serious because you'd expect there's some way to bold table content, etc.
  2. What if the image is the only item in the editable and the user wants to undo but there's no global toolbar?

So I guess we'd need to integrate this image toolbar with the contextual editor toolbar, i.e. the image–specific buttons will be displayed at the end of such toolbar.

@Reinmar
Copy link
Member

Reinmar commented May 9, 2017

What if the image is the only item in the editable and the user wants to undo but there's no global toolbar?

First of all, there are keystrokes. Second of all – the undo buttons should not be place in the contextual toolbar at all. It makes no sense. Contextual toolbar should be used for actions which are contextual.

We may support some global commands when the image is selected, like the Link. How would users link such content if there's no toolbar? Keep in mind that tables will come with similar toolbar and the problem gets quite serious because you'd expect there's some way to bold table content, etc.

The image toolbar needs to be correctly configured. It should feature the link button in such a case.

oleq referenced this issue in ckeditor/ckeditor5-image May 11, 2017
oleq referenced this issue in ckeditor/ckeditor5-image May 11, 2017
Fix: The image toolbar should not be doubled when the `ContextualToolbar` plugin is in use. Closes #110.
@mlewand mlewand transferred this issue from ckeditor/ckeditor5-image Oct 9, 2019
@mlewand mlewand added this to the iteration 11 milestone Oct 9, 2019
@mlewand mlewand added status:confirmed type:bug This issue reports a buggy (incorrect) behavior. package:image labels Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:image type:bug This issue reports a buggy (incorrect) behavior.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants