Sfoglia il codice sorgente

Remove wrapping div for required elements in link panel.

Mateusz Samsel 6 anni fa
parent
commit
0c23986fb2
1 ha cambiato i file con 3 aggiunte e 13 eliminazioni
  1. 3 13
      packages/ckeditor5-link/src/ui/linkformview.js

+ 3 - 13
packages/ckeditor5-link/src/ui/linkformview.js

@@ -240,19 +240,9 @@ export default class LinkFormView extends View {
 	_createFormChildren() {
 		const children = this.createCollection();
 
-		const requiredButtonView = new View();
-		requiredButtonView.setTemplate( {
-			tag: 'div',
-			children: [
-				this.urlInputView,
-				this.saveButtonView,
-				this.cancelButtonView
-			],
-			attributes: {
-				class: 'ck-link-form_required-buttons'
-			}
-		} );
-		children.add( requiredButtonView );
+		children.add( this.urlInputView );
+		children.add( this.saveButtonView );
+		children.add( this.cancelButtonView );
 
 		if ( this.customAttributes.length ) {
 			const additionalButtonsView = new View();