Changeset 36703
- Timestamp:
- 02/25/2016 03:47:46 AM (9 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/tinymce/plugins/wplink/plugin.js
r36677 r36703 58 58 '<div id="' + this._id + '" class="wp-link-input">' + 59 59 '<input type="text" value="" tabindex="-1" placeholder="' + tinymce.translate('Paste URL or type to search') + '" />' + 60 '<input type=" hidden" value="" />' +60 '<input type="text" style="display:none" value="" />' + 61 61 '</div>' 62 62 ); … … 446 446 classes: 'widget btn primary' 447 447 } ); 448 449 return { 450 hideEditToolbar: function() { 451 editToolbar.hide(); 452 } 453 }; 448 454 } ); 449 455 } )( window.tinymce ); -
trunk/src/wp-includes/js/wplink.js
r36677 r36703 209 209 // If this is moved above the selection changes, 210 210 // IE will show a flashing cursor over the dialog. 211 inputs.url.focus()[0].select(); 211 window.setTimeout( function() { 212 inputs.url.focus()[0].select(); 213 }, 100 ); 212 214 } 213 215 … … 243 245 244 246 mceRefresh: function( url, text ) { 245 var selectedNode = editor.selection.getNode(), 246 linkNode = editor.dom.getParent( selectedNode, 'a[href]' ), 247 var linkNode = editor.dom.getParent( editor.selection.getNode(), 'a[href]' ), 247 248 onlyText = this.hasSelectedText( linkNode ); 248 249 … … 273 274 274 275 close: function() { 275 var linkNode;276 277 276 $( document.body ).removeClass( 'modal-open' ); 278 277 … … 285 284 } 286 285 } else { 287 linkNode = editor.dom.getParent( editor.selection.getNode(), 'a[href]' ); 288 289 if ( linkNode && editor.dom.getAttrib( linkNode, 'href' ) === '_wp_link_placeholder' ) { 290 editor.dom.remove( linkNode, true ); 291 } 292 286 editor.plugins.wplink.hideEditToolbar(); 293 287 editor.focus(); 294 288 } -
trunk/src/wp-includes/version.php
r36702 r36703 19 19 * @global string $tinymce_version 20 20 */ 21 $tinymce_version = '4304-201602 19';21 $tinymce_version = '4304-20160224'; 22 22 23 23 /**
Note: See TracChangeset
for help on using the changeset viewer.