浏览代码

Merge pull request #28 from ckeditor/t/27

t/27: Used enhanced Template API to improve the way LinkFormView extends it…
Piotrek Koszuliński 9 年之前
父节点
当前提交
af5fc4df42
共有 1 个文件被更改,包括 5 次插入9 次删除
  1. 5 9
      packages/ckeditor5-link/src/ui/linkformview.js

+ 5 - 9
packages/ckeditor5-link/src/ui/linkformview.js

@@ -29,16 +29,12 @@ export default class LinkFormView extends FormView {
 			}
 		} );
 
-		this.template.definition.children = [
-			{
-				tag: 'div',
-				attributes: {
-					class: [
-						'ck-link-form__actions'
-					]
-				}
+		this.template.children.add( new Template( {
+			tag: 'div',
+			attributes: {
+				class: 'ck-link-form__actions'
 			}
-		];
+		} ) );
 
 		this.register( 'actions', 'div.ck-link-form__actions' );
 	}