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

Allow arrays in plugins configuration #1929

Merged
merged 9 commits into from
Jun 22, 2018
Merged

Allow arrays in plugins configuration #1929

merged 9 commits into from
Jun 22, 2018

Conversation

Comandeer
Copy link
Member

What is the purpose of this pull request?

New feature

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've added helper function, parsePluginsOption, which converts array of plugins into string. That way the ability to pass plugins as array was added with minimal changes to whole loading logic.

Closes #1802.

@mlewand
Copy link
Contributor

mlewand commented May 18, 2018

Rebased the branch onto the latest major branch.

Copy link
Contributor

@mlewand mlewand left a comment

Choose a reason for hiding this comment

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

Tests are failing on built version of CKE.


// (#1802)
'test extraPlugins allows array': function() {
bender.editorBot.create( { name: 'editor_extraPluginsarray', config: { extraPlugins: [ 'basicstyles', 'image2', 'toolbar' ] } }, function( bot ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Avoid placing multiple properties in a single line.

@mlewand
Copy link
Contributor

mlewand commented May 18, 2018

I have added a single commit correcting manual tests, so only unit test remains.

@Comandeer
Copy link
Member Author

I've fixed all unit tests in core/config/plugins.js.

Copy link
Contributor

@mlewand mlewand left a comment

Choose a reason for hiding this comment

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

Works OK, I have just reflected the change in config API docs.

@mlewand mlewand merged commit 47d5fc1 into major Jun 22, 2018
@mlewand mlewand deleted the t/1802 branch June 22, 2018 09:26
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