|
|
@@ -1,5 +1,5 @@
|
|
|
/**
|
|
|
- * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
|
|
|
+ * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@@ -149,7 +149,7 @@ export default class BlockToolbar extends Plugin {
|
|
|
*/
|
|
|
afterInit() {
|
|
|
const factory = this.editor.ui.componentFactory;
|
|
|
- const config = this.editor.config.get( 'blockToolbar' );
|
|
|
+ const config = this.editor.config.get( 'blockToolbar' ) || [];
|
|
|
|
|
|
this.toolbarView.fillFromConfig( config, factory );
|
|
|
|