Changeset 882
- Timestamp:
- 2007-09-26 16:57:21 (14 months ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 3 modified
-
editor/fckeditor.html (modified) (1 diff)
-
editor/_source/internals/fckbrowserinfo.js (modified) (1 diff)
-
fckeditor.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/fckeditor.html
r851 r882 48 48 49 49 // Main editor scripts. 50 var sSuffix = /msie/.test( navigator.userAgent.toLowerCase()) ? 'ie' : 'gecko' ;50 var sSuffix = ( /*@cc_on!@*/false ) ? 'ie' : 'gecko' ; 51 51 52 52 /* @Packager.RemoveLine -
FCKeditor/trunk/editor/_source/internals/fckbrowserinfo.js
r864 r882 26 26 var FCKBrowserInfo = 27 27 { 28 IsIE : s.Contains('msie'),29 IsIE7 : s.Contains('msie 7'),28 IsIE : /*@cc_on!@*/false, 29 IsIE7 : /*@cc_on!@*/false && s.Contains('msie 7'), 30 30 IsGecko : s.Contains('gecko/'), 31 31 IsSafari : s.Contains(' applewebkit/'), // Read "IsWebKit" 32 IsOpera : s.Contains('opera'),32 IsOpera : !!window.opera, 33 33 IsMac : s.Contains('macintosh') 34 34 } ; -
FCKeditor/trunk/fckeditor.js
r864 r882 40 40 this.EnableSafari = false ; // This is a temporary property, while Safari support is under development. 41 41 this.EnableSafari = true ; // @Packager.RemoveLine 42 this.EnableOpera = false ; // This is a temporary property, while Opera support is under development.43 this.EnableOpera = true ; // @Packager.RemoveLine44 42 45 43 this.Config = new Object() ; … … 157 155 FCKeditor.prototype._IsCompatibleBrowser = function() 158 156 { 159 return FCKeditor_IsCompatibleBrowser( this.EnableSafari , this.EnableOpera) ;157 return FCKeditor_IsCompatibleBrowser( this.EnableSafari ) ; 160 158 } 161 159 … … 190 188 } 191 189 192 function FCKeditor_IsCompatibleBrowser( enableSafari , enableOpera)190 function FCKeditor_IsCompatibleBrowser( enableSafari ) 193 191 { 194 192 var sAgent = navigator.userAgent.toLowerCase() ; 195 193 196 194 // Internet Explorer 197 if ( sAgent.indexOf("msie") != -1 && sAgent.indexOf("mac") == -1 && sAgent.indexOf("opera") == -1 )195 if ( /*@cc_on!@*/false && sAgent.indexOf("mac") == -1 ) 198 196 { 199 197 var sBrowserVersion = navigator.appVersion.match(/MSIE (.\..)/)[1] ; … … 206 204 207 205 // Opera 208 if ( enableOpera && sAgent.indexOf( 'opera' ) == 0 && parseInt( navigator.appVersion, 10 ) >= 9)206 if ( window.opera && window.opera.version && window.opera.version() >= 9.5 ) 209 207 return true ; 210 208