-
Notifications
You must be signed in to change notification settings - Fork 12
Added default configuration parameter for Config #127
Conversation
src/config.js
Outdated
|
||
// Set default configuration. | ||
if ( defaultConfigurations ) { | ||
this._setObjectToTarget( this._config, defaultConfigurations, true ); |
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.
Why not define()
? It's a role of this method to set the default values.
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.
Fixed in 9bd0d4b.
Please add a test for a deeper config objects. |
…as default parameters.
Done in 4783f38. |
tests/config.js
Outdated
first: 1, | ||
second: 2 | ||
}, | ||
'b.foo.first': 1, |
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.
Not like this, like:
b: {
foo: {
first: 1
}
}
This is supported just by coincident :D
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.
Fixed in 2e7eab7. :D
You forgot about API docs but I'll add them. R+ for the rest. |
Suggested merge commit message (convention)
Feature: Added default configuration parameter for
Config
. Closes ckeditor/ckeditor5#4936.Additional information