Ticket #1691: 1691_2.patch
File 1691_2.patch, 1.8 KB (added by , 16 years ago) |
---|
-
_whatsnew.html
81 81 correctly restored when undoing changes made by the Replace dialog.</li> 82 82 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2160">#2160</a>] "Match whole word" in the 83 83 Find and Replace dialog will now find words next to punctuation marks as well.</li> 84 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1691">#1691</a>] Creation of links in Safari 85 failed if there was no selection.</li> 84 86 </ul> 85 87 <h3> 86 88 Version 2.6</h3> -
editor/_source/internals/fck_gecko.js
415 415 // Creates the array that will be returned. It contains one or more created links (see #220). 416 416 var aCreatedLinks = new Array() ; 417 417 418 // Only for Safari, a collapsed selection may create a link. All other 419 // browser will have no links creates. So, we check it here and return 420 // immediatelly, having the same cross browser behavior. 421 if ( FCKSelection.GetSelection().isCollapsed ) 422 return aCreatedLinks ; 423 418 424 FCK.ExecuteNamedCommand( 'Unlink', null, false, !!noUndo ) ; 419 425 420 426 if ( url.length > 0 ) … … 434 440 var oLink = oLinksInteractor.snapshotItem( i ) ; 435 441 oLink.href = url ; 436 442 437 // It may happen that the browser (aka Safari) decides to use the438 // URL as the link content to not leave it empty. In this case,439 // let's reset it.440 if ( sTempUrl == oLink.innerHTML )441 oLink.innerHTML = '' ;442 443 443 aCreatedLinks.push( oLink ) ; 444 444 } 445 445 }