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

Fix for incorrect selection when styling table using native selection #3038

Merged
merged 4 commits into from
Jul 11, 2019

Conversation

jacekbogdanski
Copy link
Member

What is the purpose of this pull request?

Bug fix

Does your PR contain necessary tests?

All patches which change the editor code must include tests. You can always read more
on PR testing,
how to set the testing environment and
how to create tests
in the official CKEditor documentation.

This PR contains

  • Unit tests
  • Manual tests

What changes did you make?

I removed the code responsible for selecting detached DOM elements. The issue has been introduced with d4907f5634 commit as a part of https://dev.ckeditor.com/ticket/16755 feature.

I couldn't spot any issues after code removal nor manual or unit tests referencing the issue from comment. Not sure why it has been implemented in the first place. I can only suppose that it has been fixed by some editor changes.

Closes #941

@Comandeer Comandeer self-requested a review July 10, 2019 15:54
@Comandeer Comandeer self-assigned this Jul 10, 2019
@Comandeer
Copy link
Member

Not sure why it has been implemented in the first place.

It was implemented due to the bug in Chrome: https://bugs.chromium.org/p/chromium/issues/detail?id=353069

For some selections, Chrome displayed error in the console and this code prevented that.

@Comandeer Comandeer changed the base branch from master to major July 11, 2019 11:06
@Comandeer
Copy link
Member

Rebased onto latest major.

Copy link
Member

@Comandeer Comandeer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Comandeer Comandeer merged commit 26ee0b1 into major Jul 11, 2019
@CKEditorBot CKEditorBot deleted the t/941 branch July 11, 2019 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Editor crashes after styling the cell with native selection
2 participants