wp/wp-includes/js/wplink.js
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
equal deleted inserted replaced
21:48c4eec2b7e6 22:8c2e4d02f4ef
   160 			rivers.recent.refresh();
   160 			rivers.recent.refresh();
   161 
   161 
   162 			if ( wpLink.isMCE() ) {
   162 			if ( wpLink.isMCE() ) {
   163 				wpLink.mceRefresh( url, text );
   163 				wpLink.mceRefresh( url, text );
   164 			} else {
   164 			} else {
   165 				// For the Text editor the "Link text" field is always shown.
   165 				// For the Code editor the "Link text" field is always shown.
   166 				if ( ! inputs.wrap.hasClass( 'has-text-field' ) ) {
   166 				if ( ! inputs.wrap.hasClass( 'has-text-field' ) ) {
   167 					inputs.wrap.addClass( 'has-text-field' );
   167 					inputs.wrap.addClass( 'has-text-field' );
   168 				}
   168 				}
   169 
   169 
   170 				if ( document.selection ) {
   170 				if ( document.selection ) {
   321 
   321 
   322 		buildHtml: function(attrs) {
   322 		buildHtml: function(attrs) {
   323 			var html = '<a href="' + attrs.href + '"';
   323 			var html = '<a href="' + attrs.href + '"';
   324 
   324 
   325 			if ( attrs.target ) {
   325 			if ( attrs.target ) {
   326 				html += ' rel="noopener" target="' + attrs.target + '"';
   326 				html += ' target="' + attrs.target + '"';
   327 			}
   327 			}
   328 
   328 
   329 			return html + '>';
   329 			return html + '>';
   330 		},
   330 		},
   331 
   331