From b1da1ac9d4c9f69969154e917792d78ca93a3a56 Mon Sep 17 00:00:00 2001 From: Aleksander Nowodzinski Date: Tue, 19 Nov 2019 13:56:02 +0100 Subject: [PATCH] Renamed config.toolbar.shouldGroupWhenFull to config.toolbar.shouldNotGroupWhenFull. --- src/classiceditor.js | 4 ++-- tests/classiceditor.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/classiceditor.js b/src/classiceditor.js index 596cd92..5c11c7c 100644 --- a/src/classiceditor.js +++ b/src/classiceditor.js @@ -70,9 +70,9 @@ export default class ClassicEditor extends Editor { this.model.document.createRoot(); - const shouldGroupWhenFull = this.config.get( 'toolbar.shouldGroupWhenFull' ); + const shouldToolbarGroupWhenFull = !this.config.get( 'toolbar.shouldNotGroupWhenFull' ); const view = new ClassicEditorUIView( this.locale, this.editing.view, { - shouldToolbarGroupWhenFull: shouldGroupWhenFull === undefined ? true : shouldGroupWhenFull + shouldToolbarGroupWhenFull } ); this.ui = new ClassicEditorUI( this, view ); diff --git a/tests/classiceditor.js b/tests/classiceditor.js index 0e1b121..8a0b139 100644 --- a/tests/classiceditor.js +++ b/tests/classiceditor.js @@ -113,11 +113,11 @@ describe( 'ClassicEditor', () => { editorElement.remove(); } ); - it( 'can be disabled using config.toolbar.shouldGroupWhenFull', () => { + it( 'can be disabled using config.toolbar.shouldNotGroupWhenFull', () => { const editorElement = document.createElement( 'div' ); const editor = new ClassicEditor( editorElement, { toolbar: { - shouldGroupWhenFull: false + shouldNotGroupWhenFull: true } } );