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

Widget issues in tables #710

Open
Comandeer opened this issue Aug 1, 2017 · 5 comments
Open

Widget issues in tables #710

Comandeer opened this issue Aug 1, 2017 · 5 comments
Assignees
Labels
plugin:tableselection The plugin which probably causes the issue. plugin:widget The plugin which probably causes the issue. regression This issue is a regression. status:confirmed An issue confirmed by the development team. support:2 An issue reported by a commercially licensed client. type:bug A bug.
Milestone

Comments

@Comandeer
Copy link
Member

Are you reporting a feature request or a bug?

Bug

Provide detailed reproduction steps (if any)

All cases are based on https://jsfiddle.net/a8wrevzz/

Case 1

  1. Click image's move handler
  2. Try to move image.

Expected result

Image is moved.

Actual result

Table selection is activated, but image is not moved.

Case 2

  1. Try to resize image using resize handler

Expected result

Image is resized.

Actual result

  • Table selection is activated (especially in case of enlarging image).
  • In rare cases image could be not resized at all.

Case 3

  1. Click image.

Expected result

Widget is focused.

Actual result

Widget becomes focused, but immediately loses focus.

Other details

  • Installed CKEditor plugins: tableselection, image2
@Comandeer Comandeer added plugin:image2 The plugin which probably causes the issue. plugin:tableselection The plugin which probably causes the issue. plugin:widget The plugin which probably causes the issue. status:confirmed An issue confirmed by the development team. type:bug A bug. labels Aug 1, 2017
@Comandeer Comandeer added this to the Backlog milestone Aug 1, 2017
@mlewand mlewand removed the plugin:image2 The plugin which probably causes the issue. label Aug 1, 2017
@Comandeer Comandeer self-assigned this Aug 1, 2017
@mlewand
Copy link
Contributor

mlewand commented Aug 1, 2017

Actually this one is for the discussion:

I think that dragging a widget should cancel the mousedown event, since it basically takes over the whole process by displaying magic line etc. Also for consistency mousemove and mouseup should be also prevented (if following the mousedown and handled by widget ofc).

Table selection should have a lower priority than a widget selection, and would not be triggered if already handled by widget.

On a side note, table selection should do the same thing as for event cancellation.

@Comandeer
Copy link
Member Author

It seems that lowering mouse listeners priorities in tableselection plugin and adding evt.stop to listeners in widget plugin partially fixes the issue. However there is still issue with dragging widget inside the table. After dragging and dropping it the first time, every attempt to write inside table just focuses the widget, making table practically uneditable.

@AlfonsoML
Copy link
Contributor

For reference, these problems didn't exist previously (like 4.6.something), it's a regression that hurts the people that wants to upgrade.

@msamsel
Copy link
Contributor

msamsel commented Nov 6, 2017

Case 2 - Also table selection activate when widget is dragged.

@Mgsy
Copy link
Member

Mgsy commented Nov 14, 2017

Steps to reproduce

  1. Go to http://localhost:1030/tests/plugins/clipboard/manual/draganddrop.
  2. Select the widget.
  3. Ctrl + C.
  4. Put the caret inside the table cell.
  5. Ctrl + V.
  6. Move to the next cell.
  7. Ctrl + V.

Expected result

The image pastes correctly.

Current result

The image doesn't paste into the cell.

Other information

OS: Windows 10, MacOS X
Browser: All browsers
Release: 4.7.3

@mlewand mlewand added the regression This issue is a regression. label Nov 15, 2017
@mlewand mlewand added this to the Backlog milestone Nov 15, 2017
@jswiderski jswiderski added the support An issue reported by a commercially licensed client. label May 29, 2018
@lslowikowska lslowikowska added support:1 An issue reported by a commercially licensed client. and removed support An issue reported by a commercially licensed client. labels Dec 21, 2018
@lslowikowska lslowikowska added support:2 An issue reported by a commercially licensed client. and removed support:1 An issue reported by a commercially licensed client. labels May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin:tableselection The plugin which probably causes the issue. plugin:widget The plugin which probably causes the issue. regression This issue is a regression. status:confirmed An issue confirmed by the development team. support:2 An issue reported by a commercially licensed client. type:bug A bug.
Projects
None yet
Development

No branches or pull requests

7 participants