Changeset 1096

Show
Ignore:
Timestamp:
2007-11-21 19:00:03 (2 years ago)
Author:
fredck
Message:

Fixed comment:ticket:1451:2 : The empty anchor creation is now working properly on Safari.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/internals/fck_gecko.js

    r1076 r1096  
    429429                        var oLink = oLinksInteractor.snapshotItem( i ) ; 
    430430                        oLink.href = url ; 
     431 
     432                        // It may happen that the browser (aka Safari) decides to use the 
     433                        // URL as the link content to not leave it empty. In this case, 
     434                        // let's reset it. 
     435                        if ( sTempUrl == oLink.innerHTML ) 
     436                                oLink.innerHTML = '' ; 
     437 
    431438                        aCreatedLinks.push( oLink ) ; 
    432439                }