Browse Source

Renamed _getConfigForEditor method to _getEditorConfig.

Oskar Wróbel 6 years ago
parent
commit
5a14d485a6

+ 1 - 1
packages/ckeditor5-core/src/context.js

@@ -216,7 +216,7 @@ export default class Context {
 	 * @protected
 	 * @returns {Object} Configuration as a plain object.
 	 */
-	_getConfigForEditor() {
+	_getEditorConfig() {
 		const result = {};
 
 		for ( const name of this.config.names() ) {

+ 1 - 1
packages/ckeditor5-core/src/editor/editor.js

@@ -74,7 +74,7 @@ export default class Editor {
 		 */
 		this.config = new Config( config, this.constructor.defaultConfig );
 		this.config.define( 'plugins', availablePlugins );
-		this.config.define( this._context._getConfigForEditor() );
+		this.config.define( this._context._getEditorConfig() );
 
 		/**
 		 * The plugins loaded and in use by this editor instance.

+ 2 - 2
packages/ckeditor5-core/tests/context.js

@@ -26,7 +26,7 @@ describe( 'Context', () => {
 		} );
 	} );
 
-	describe( '_getConfigForEditor()', () => {
+	describe( '_getEditorConfig()', () => {
 		it( 'should return the configuration without plugin config', () => {
 			class FooPlugin extends ContextPlugin {}
 			class BarPlugin extends ContextPlugin {}
@@ -41,7 +41,7 @@ describe( 'Context', () => {
 				bar: 'bom'
 			} );
 
-			expect( context._getConfigForEditor() ).to.be.deep.equal( {
+			expect( context._getEditorConfig() ).to.be.deep.equal( {
 				language: { ui: 'pl', content: 'ar' },
 				foo: 1,
 				bar: 'bom'