Browse Source

Used enhanced Template API to improve the way LinkFormView extends its template.

Aleksander Nowodzinski 9 years ago
parent
commit
93a1709033
1 changed files with 5 additions and 9 deletions
  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' );
 	}