Преглед на файлове

Renamed config.toolbar.shouldGroupWhenFull to config.toolbar.shouldNotGroupWhenFull.

Aleksander Nowodzinski преди 6 години
родител
ревизия
346a182c32
променени са 2 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 2 2
      packages/ckeditor5-editor-decoupled/src/decouplededitor.js
  2. 2 2
      packages/ckeditor5-editor-decoupled/tests/decouplededitor.js

+ 2 - 2
packages/ckeditor5-editor-decoupled/src/decouplededitor.js

@@ -76,10 +76,10 @@ export default class DecoupledEditor extends Editor {
 
 		this.model.document.createRoot();
 
-		const shouldGroupWhenFull = this.config.get( 'toolbar.shouldGroupWhenFull' );
+		const shouldToolbarGroupWhenFull = !this.config.get( 'toolbar.shouldNotGroupWhenFull' );
 		const view = new DecoupledEditorUIView( this.locale, this.editing.view, {
 			editableElement: this.sourceElement,
-			shouldToolbarGroupWhenFull: shouldGroupWhenFull === undefined ? true : shouldGroupWhenFull
+			shouldToolbarGroupWhenFull
 		} );
 
 		this.ui = new DecoupledEditorUI( this, view );

+ 2 - 2
packages/ckeditor5-editor-decoupled/tests/decouplededitor.js

@@ -71,11 +71,11 @@ describe( 'DecoupledEditor', () => {
 					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 DecoupledEditor( editorElement, {
 						toolbar: {
-							shouldGroupWhenFull: false
+							shouldNotGroupWhenFull: true
 						}
 					} );