ckeditor5
ckeditor5 copied to clipboard
Visual glitches while editing an image using CKBox
📝 Provide detailed reproduction steps (if any)
https://github.com/ckeditor/ckeditor5/assets/1099479/78caf9aa-a9b3-4d3d-98e0-47df10cd8f4a
✔️ Expected result
- The loading spinner in CKBox staying centered.
- The image toolbar staying attached to the image after closing CKBox.
📃 Other details
- Browser: Chrome
- OS: MacOS
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
I've investigated these problems a little.
- The spinner is probably only related to this one particular example. I guess there is a CSS conflict of some sort.
- The problem with the toolbar might be more broad. I tested some other demos with CKBox image editing enabled, and the results were the same. It may be related to the
position: fixed
property. When you turn it off on the CKBox dialog, the toolbar works correctly. It also fixes itself after some action on the page, like scrolling or clicking it. The toolbar is misplaced for 100px from the top.
Examples of other demos with the second problem:
- https://ckeditor.com/docs/ckeditor5/latest/features/images/images-overview.html
- https://ckeditor.com/docs/ckeditor5/latest/features/file-management/ckbox.html
- https://ckeditor.com/docs/ckeditor5/latest/features/show-blocks.html
2. The problem with the toolbar might be more broad. I tested some other demos with CKBox image editing enabled, and the results were the same. It may be related to the
position: fixed
property. When you turn it off on the CKBox dialog, the toolbar works correctly. It also fixes itself after some action on the page, like scrolling or clicking it. The toolbar is misplaced for 100px from the top.
We may want to call editor.ui.update()
when CKBox closes. Various parts of the editor UI (including BalloonToolbar
) react to that and re-position themselves.