Ticket #15485: 15485.diff
File 15485.diff, 922 bytes (added by , 14 years ago) |
---|
-
wp-includes/js/tinymce/plugins/wplink/js/wplink.dev.js
64 64 href : inputs.url.val(), 65 65 title : inputs.title.val(), 66 66 target : inputs.openInNewTab.attr('checked') ? '_blank' : '' 67 }, e, b,67 }, e, children, b, 68 68 defaultContent = attrs.title ? attrs.title : attrs.href; 69 69 70 70 tinyMCEPopup.restoreSelection(); … … 112 112 ed.dom.setAttribs(e, attrs); 113 113 } 114 114 115 children = $(e).children(); 115 116 // Don't move caret if selection was image 116 if ( e.childNodes.length != 1 || e.firstChild.nodeName != 'IMG') {117 if ( children.length != 1 || children.first().not('img') ) { 117 118 ed.focus(); 118 119 ed.selection.select(e); 119 120 ed.selection.collapse(0);