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 widget plugin when keystorke is pressed #4072

Merged
merged 6 commits into from
Jun 9, 2020
Merged

Fix widget plugin when keystorke is pressed #4072

merged 6 commits into from
Jun 9, 2020

Conversation

hub33k
Copy link
Contributor

@hub33k hub33k commented May 25, 2020

What is the purpose of this pull request?

Bug fix.

Does your PR contain necessary tests?

All patches that 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

Did you follow the CKEditor 4 code style guide?

Your code should follow the guidelines from the CKEditor 4 code style guide which helps keep the entire codebase consistent.

  • PR is consistent with the code style guide

What is the proposed changelog entry for this pull request?

*[#3998](https://github.com/ckeditor/ckeditor4/issues/3998): Fix widget plugin when using keystrokes to get to source code.

What changes did you make?

Added some checks if selection inside widget.js is null.

Which issues does your PR resolve?

Closes #3998.

@hub33k hub33k requested a review from f1ames May 25, 2020 12:58
@f1ames f1ames self-assigned this May 28, 2020
Copy link
Contributor

@f1ames f1ames left a comment

Choose a reason for hiding this comment

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

I think it will be useful to have unit tests coverage too - it should be doable, please take a look on existing tests which fires keystrokes (search for fire( 'key) and changes mode (.setMode() as it will be helpful.

plugins/widget/plugin.js Outdated Show resolved Hide resolved
tests/plugins/widget/manual/keystroke.md Outdated Show resolved Hide resolved
tests/plugins/widget/manual/keystroke.md Outdated Show resolved Hide resolved
tests/plugins/widget/manual/keystroke.md Outdated Show resolved Hide resolved
tests/plugins/widget/manual/keystroke.md Outdated Show resolved Hide resolved
tests/plugins/widget/manual/keystroke.md Outdated Show resolved Hide resolved
@f1ames f1ames changed the title Fix widget plugin when keystorke is pressed. Fix widget plugin when keystorke is pressed Jun 2, 2020
@hub33k hub33k self-assigned this Jun 4, 2020
@hub33k hub33k force-pushed the t/3998 branch 6 times, most recently from 94884e7 to 311aec8 Compare June 8, 2020 13:17
@hub33k hub33k requested a review from f1ames June 9, 2020 10:07
@f1ames f1ames self-assigned this Jun 9, 2020
Copy link
Contributor

@f1ames f1ames left a comment

Choose a reason for hiding this comment

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

LGTM 👍

I did some refactoring related to unit tests only.

@f1ames f1ames merged commit cb6f2c4 into master Jun 9, 2020
@f1ames f1ames deleted the t/3998 branch June 9, 2020 14:55
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