Changeset 883

Show
Ignore:
Timestamp:
2007-09-26 17:27:35 (2 years ago)
Author:
fredck
Message:

Officially enabling Safari 3 (Webkit 522) compatibility.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/fckeditor.js

    r882 r883  
    3838        this.CheckBrowser       = true ; 
    3939        this.DisplayErrors      = true ; 
    40         this.EnableSafari       = false ;               // This is a temporary property, while Safari support is under development. 
    41         this.EnableSafari       = true ;                // @Packager.RemoveLine 
    4240 
    4341        this.Config                     = new Object() ; 
     
    155153FCKeditor.prototype._IsCompatibleBrowser = function() 
    156154{ 
    157         return FCKeditor_IsCompatibleBrowser( this.EnableSafari ) ; 
     155        return FCKeditor_IsCompatibleBrowser() ; 
    158156} 
    159157 
     
    188186} 
    189187 
    190 function FCKeditor_IsCompatibleBrowser( enableSafari ) 
     188function FCKeditor_IsCompatibleBrowser() 
    191189{ 
    192190        var sAgent = navigator.userAgent.toLowerCase() ; 
    193191 
    194         // Internet Explorer 
     192        // Internet Explorer 5.5+ 
    195193        if ( /*@cc_on!@*/false && sAgent.indexOf("mac") == -1 ) 
    196194        { 
     
    203201                return true ; 
    204202 
    205         // Opera 
     203        // Opera 9.50+ 
    206204        if ( window.opera && window.opera.version && window.opera.version() >= 9.5 ) 
    207205                        return true ; 
    208206 
    209         // Safari 
     207        // Safari 3+ 
    210208        if ( enableSafari && sAgent.indexOf( ' applewebkit/' ) != -1 ) 
    211209                return ( sAgent.match( / applewebkit\/(\d+)/ )[1] >= 522 ) ;    // Build must be at least 522 (v3)