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

Keep stylesLoaded out of global context (taken over) #4263

Merged
merged 5 commits into from
Sep 10, 2020
Merged

Keep stylesLoaded out of global context (taken over) #4263

merged 5 commits into from
Sep 10, 2020

Conversation

jacekbogdanski
Copy link
Member

What is the purpose of this pull request?

Task

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?

Changelog entry should be placed under Other Changes.

* [#4262](https://github.com/ckeditor/ckeditor4/issues/4262): Removed global reference to `stylesLoaded` variable. Thanks to [
Levi Carter](https://github.com/swiftMessenger)!

What changes did you make?

I've taken over #4194 and since a lot of changed in the base branch, it was much easier to just cherry-pick changes.

Which issues does your PR resolve?

Closes #4262

swiftMessenger and others added 4 commits September 10, 2020 10:57
Moved the dialog plugin's stylesLoaded variable into the IIFE to prevent the stylesLoaded variable from being included (and editable) in the global context. This also required moving the "CKEDITOR.plugins.add( 'dialog', { ..." call into the IIFE - where it should have been to begin with.
Moved comment out of IIFE back to where it belongs
@f1ames
Copy link
Contributor

f1ames commented Sep 10, 2020

Rebased onto latest master.

@f1ames f1ames self-requested a review September 10, 2020 09:52
@f1ames f1ames self-assigned this Sep 10, 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 👍

@f1ames f1ames merged commit 4f621d0 into master Sep 10, 2020
@f1ames f1ames deleted the t/4262 branch September 10, 2020 09:57
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.

3 participants