Procházet zdrojové kódy

Internal: Link URL placeholder should not be translatable. Closes #144.

Piotrek Koszuliński před 8 roky
rodič
revize
5ef9b9b532

+ 1 - 1
packages/ckeditor5-link/src/ui/linkformview.js

@@ -199,7 +199,7 @@ export default class LinkFormView extends View {
 		const labeledInput = new LabeledInputView( this.locale, InputTextView );
 
 		labeledInput.label = t( 'Link URL' );
-		labeledInput.inputView.placeholder = t( 'http://example.com' );
+		labeledInput.inputView.placeholder = 'https://example.com';
 
 		return labeledInput;
 	}

+ 1 - 1
packages/ckeditor5-link/tests/ui/linkformview.js

@@ -101,7 +101,7 @@ describe( 'LinkFormView', () => {
 
 		describe( 'url input view', () => {
 			it( 'has placeholder', () => {
-				expect( view.urlInputView.inputView.placeholder ).to.equal( 'http://example.com' );
+				expect( view.urlInputView.inputView.placeholder ).to.equal( 'https://example.com' );
 			} );
 		} );