Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Renamed config.toolbar.shouldGroupWhenFull to config.toolbar.shouldNo…
Browse files Browse the repository at this point in the history
…tGroupWhenFull.
  • Loading branch information
oleq committed Nov 19, 2019
1 parent 932e90d commit b1da1ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/classiceditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
4 changes: 2 additions & 2 deletions tests/classiceditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
} );

Expand Down

0 comments on commit b1da1ac

Please sign in to comment.