t/27: Used enhanced Template API to improve the way LinkFormView extends it…
@@ -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' );