-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Conversation
Rebased the branch onto the latest major branch. |
There was a problem hiding this 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.
tests/core/config/plugins.js
Outdated
|
||
// (#1802) | ||
'test extraPlugins allows array': function() { | ||
bender.editorBot.create( { name: 'editor_extraPluginsarray', config: { extraPlugins: [ 'basicstyles', 'image2', 'toolbar' ] } }, function( bot ) { |
There was a problem hiding this comment.
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.
I have added a single commit correcting manual tests, so only unit test remains. |
I've fixed all unit tests in |
…use problem with mobile testing) and fixed it to show the same values on built editor version.
There was a problem hiding this 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.
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
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.