-
-
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
Table selection is active during image resize #6755
Comments
While checking this issue I noticed that table selection and widget resize dragging handling listens for |
Is not true at all. The resizing mechanism attaches its events to DOM document. ckeditor5/packages/ckeditor5-widget/src/widgetresize.js Lines 68 to 80 in de8316f
That's why we can't use I guess the fix must land to |
That's interesting. I wonder why there's ckeditor5/packages/ckeditor5-table/src/tablemouse.js Lines 45 to 47 in b362e24
It might be worth checking if table & widget resize mouse handlers could not be merged together into existing But before that maybe @mlewand or @Reinmar have some insights why this observer is "detached" from editor view document. |
Honestly, at this point I don't really remember why we went with Joining observers, as suggested by @jodator, might be beneficial as both should work pretty much the same way. With this we should be able to to prioritize the image resize event listener over table's one. That's fine for a workaround, but in the grand schema of things we should be able to solve it without relying on priority. |
Fix (widget): The resizing mechanism will not trigger other `view.Document#mousedown` events. Thanks to that while resizing an image inside a cell, the mouse will not trigger the table's actions. Closes #6755.
π Provide detailed reproduction steps (if any)
βοΈ Expected result
Cells are not selected.
β Actual result
Cells are selected, resizing fails.
π Other details
GIF
If you'd like to see this fixed sooner, add a π reaction to this post.
The text was updated successfully, but these errors were encountered: