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

Balloon toolbar cssSelector should also consider selected element (if any) #1383

Merged
merged 8 commits into from
Dec 28, 2017

Conversation

mlewand
Copy link
Contributor

@mlewand mlewand commented Dec 27, 2017

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?

This PR fixes a case when fully selected element was not considered by contextDefinition.cssSelector matchers.

Reason for this is that selection is being shrinked at the beginning of execution, so that probed path for selection like foo [<em>bar</em>] baz contains also em element.

Closes #1274.

@mlewand mlewand changed the title ## What is the purpose of this pull request? Balloon toolbar cssSelector should also consider selected element (if any) Dec 27, 2017
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 e869fa2 into master Dec 28, 2017
@Comandeer Comandeer deleted the t/1274 branch December 28, 2017 13:23
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.

2 participants