Browse Source

Used the new LabeledInput API in the LinkBalloonPanel.

Aleksander Nowodzinski 9 years ago
parent
commit
c91f380763
1 changed files with 2 additions and 4 deletions
  1. 2 4
      packages/ckeditor5-link/src/ui/linkballoonpanel.js

+ 2 - 4
packages/ckeditor5-link/src/ui/linkballoonpanel.js

@@ -105,7 +105,6 @@ export default class LinkBalloonPanel extends BalloonPanel {
 		const model = new Model( {
 			label: t( 'Link URL' )
 		} );
-		const inputText = new InputText( new Model(), new InputTextView( this.locale ) );
 
 		model.bind( 'value' ).to( this.model, 'url' );
 
@@ -114,9 +113,8 @@ export default class LinkBalloonPanel extends BalloonPanel {
 		 *
 		 * @member {ui.input.LabeledInput} link.ui.LinkBalloonPanel#urlInput
 		 */
-		this.urlInput = new LabeledInput( model, new LabeledInputView( this.locale ), inputText );
-
-		return this.urlInput;
+		return ( this.urlInput = new LabeledInput( model, new LabeledInputView( this.locale ),
+			InputText, InputTextView, new Model() ) );
 	}
 
 	/**