Browse Source

Changed config getter.

Oskar Wrobel 9 years ago
parent
commit
bfae21e76c
1 changed files with 4 additions and 2 deletions
  1. 4 2
      packages/ckeditor5-editor-classic/src/classiceditorui.js

+ 4 - 2
packages/ckeditor5-editor-classic/src/classiceditorui.js

@@ -61,8 +61,10 @@ export default class ClassicEditorUI extends BoxedEditorUI {
 	 * @inheritDoc
 	 * @inheritDoc
 	 */
 	 */
 	init() {
 	init() {
-		if ( this.editor.config.toolbar ) {
-			this.toolbar.addButtons( this.editor.config.toolbar );
+		const toolbar = this.editor.config.get( 'toolbar' );
+
+		if ( toolbar ) {
+			this.toolbar.addButtons( toolbar );
 		}
 		}
 
 
 		return super.init();
 		return super.init();