8
0
Просмотр исходного кода

Use the new shorthand for adding sub controllers.

Piotrek Koszuliński 9 лет назад
Родитель
Сommit
8aa60ff597

+ 1 - 1
packages/ckeditor5-engine/tests/creator/manual/_utils/creator/classiccreator.js

@@ -53,7 +53,7 @@ export default class ClassicCreator extends Creator {
 
 		toolbar.addButtons( this.editor.config.toolbar );
 
-		this.editor.ui.collections.get( 'top' ).add( toolbar );
+		this.editor.ui.add( 'top', toolbar );
 	}
 
 	_createEditable() {

+ 2 - 2
packages/ckeditor5-engine/tests/creator/manual/_utils/creator/inlinecreator.js

@@ -56,8 +56,8 @@ export default class InlineCreator extends Creator {
 		toolbar1.addButtons( this.editor.config.toolbar );
 		toolbar2.addButtons( this.editor.config.toolbar.reverse() );
 
-		this.editor.ui.collections.get( 'body' ).add( toolbar1 );
-		this.editor.ui.collections.get( 'body' ).add( toolbar2 );
+		this.editor.ui.add( 'body', toolbar1 );
+		this.editor.ui.add( 'body', toolbar2 );
 	}
 
 	_createEditable() {