Ticket #4612: 4612_2.patch
File 4612_2.patch, 1.1 KB (added by , 13 years ago) |
---|
-
_source/plugins/link/dialogs/link.js
1324 1324 else 1325 1325 { 1326 1326 // We're only editing an existing link, so just overwrite the attributes. 1327 var element = this._.selectedElement; 1327 var element = this._.selectedElement, 1328 href = element.getAttribute( '_cke_saved_href' ), 1329 textView = element.getHtml(); 1328 1330 1329 1331 // IE BUG: Setting the name attribute to an existing link doesn't work. 1330 1332 // Must re-create the link from weired syntax to workaround. … … 1345 1347 1346 1348 element.setAttributes( attributes ); 1347 1349 element.removeAttributes( removeAttributes ); 1348 1350 // Update text view when user changes protocol #4612. 1351 if (href == textView) 1352 element.setHtml( attributes._cke_saved_href ); 1349 1353 // Make the element display as an anchor if a name has been set. 1350 1354 if ( element.getAttribute( 'name' ) ) 1351 1355 element.addClass( 'cke_anchor' );