瀏覽代碼

Aligned BoxedEditorUI component to the new View API.

Aleksander Nowodzinski 9 年之前
父節點
當前提交
eb3a8c964d

+ 2 - 3
packages/ckeditor5-ui/src/editorui/boxed/boxededitoruiview.js

@@ -19,11 +19,10 @@ export default class BoxedEditorUIView extends EditorUIView {
 	/**
 	 * Creates a BoxedEditorUIView instance.
 	 *
-	 * @param {utils.Observable} model (View)Model of this view.
 	 * @param {utils.Locale} [locale] The {@link ckeditor5.Editor#locale editor's locale} instance.
 	 */
-	constructor( model, locale ) {
-		super( model, locale );
+	constructor( locale ) {
+		super( locale );
 
 		const t = this.t;
 		const ariaLabelUid = uid();

+ 1 - 2
packages/ckeditor5-ui/tests/boxededitorui/boxededitoruiview.js

@@ -6,14 +6,13 @@
 'use strict';
 
 import BoxedEditorUIView from '/ckeditor5/ui/editorui/boxed/boxededitoruiview.js';
-import Model from '/ckeditor5/ui/model.js';
 import Locale from '/ckeditor5/utils/locale.js';
 
 describe( 'BoxedEditorUIView', () => {
 	let boxedEditorUIView, element, topRegionEl, mainRegionEl;
 
 	beforeEach( () => {
-		boxedEditorUIView = new BoxedEditorUIView( new Model(), new Locale( 'en' ) );
+		boxedEditorUIView = new BoxedEditorUIView( new Locale( 'en' ) );
 		boxedEditorUIView.init();
 
 		element = boxedEditorUIView.element;