浏览代码

Aligned BoxedEditorUIView to the View#render API.

Aleksander Nowodzinski 8 年之前
父节点
当前提交
88fa42ce7d

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

@@ -9,7 +9,6 @@
 
 import EditorUIView from '../../editorui/editoruiview';
 import uid from '@ckeditor/ckeditor5-utils/src/uid';
-import Template from '../../template';
 
 /**
  * The boxed editor UI view class. This class represents an editor interface
@@ -47,7 +46,7 @@ export default class BoxedEditorUIView extends EditorUIView {
 		 */
 		this.main = this.createCollection();
 
-		this.template = new Template( {
+		this.setTemplate( {
 			tag: 'div',
 
 			attributes: {

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

@@ -12,9 +12,8 @@ describe( 'BoxedEditorUIView', () => {
 
 	beforeEach( () => {
 		view = new BoxedEditorUIView( new Locale( 'en' ) );
+		view.render();
 		element = view.element;
-
-		return view.init();
 	} );
 
 	describe( 'constructor()', () => {