|
@@ -26,8 +26,12 @@ export default class ClassicEditorUIView extends BoxedEditorUIView {
|
|
|
*
|
|
*
|
|
|
* @param {module:utils/locale~Locale} locale The {@link module:core/editor/editor~Editor#locale} instance.
|
|
* @param {module:utils/locale~Locale} locale The {@link module:core/editor/editor~Editor#locale} instance.
|
|
|
* @param {module:engine/view/view~View} editingView The editing view instance this view is related to.
|
|
* @param {module:engine/view/view~View} editingView The editing view instance this view is related to.
|
|
|
|
|
+ * @param {Object} [options={}] Configuration options fo the view instance.
|
|
|
|
|
+ * @param {Boolean} [options.shouldToolbarGroupWhenFull] When set `true` enables automatic items grouping
|
|
|
|
|
+ * in the main {@link module:editor-classic/classiceditoruiview~ClassicEditorUIView#toolbar toolbar}.
|
|
|
|
|
+ * See {@link module:ui/toolbar/toolbarview~ToolbarOptions#shouldGroupWhenFull} to learn more.
|
|
|
*/
|
|
*/
|
|
|
- constructor( locale, editingView ) {
|
|
|
|
|
|
|
+ constructor( locale, editingView, options = {} ) {
|
|
|
super( locale );
|
|
super( locale );
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -46,7 +50,7 @@ export default class ClassicEditorUIView extends BoxedEditorUIView {
|
|
|
* @member {module:ui/toolbar/toolbarview~ToolbarView}
|
|
* @member {module:ui/toolbar/toolbarview~ToolbarView}
|
|
|
*/
|
|
*/
|
|
|
this.toolbar = new ToolbarView( locale, {
|
|
this.toolbar = new ToolbarView( locale, {
|
|
|
- shouldGroupWhenFull: true
|
|
|
|
|
|
|
+ shouldGroupWhenFull: options.shouldToolbarGroupWhenFull
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
/**
|
|
/**
|