Changeset 1596

Show
Ignore:
Timestamp:
2008-02-24 10:37:19 (8 months ago)
Author:
fredck
Message:

Fixed #1886 : Introduced Adobe AIR compatibility.

Location:
FCKeditor/trunk
Files:
5 added
9 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/_dev/fckreleaser.xml

    r1565 r1596  
    2929 
    3030        <!-- 
    31                 The following directory should not existing in the development version, 
     31                The following files should not existing in the development version, 
    3232                but we leave it here just in case the packager has been run by mistake. 
    3333        --> 
    34         <IgnoreDir path="editor/js" /> 
     34        <IgnoreFile path="editor/js/fckeditorcode_ie.js" /> 
     35        <IgnoreFile path="editor/js/fckeditorcode_gecko.js" /> 
    3536 
    3637        <!-- 
    37         <IgnoreFile path="anyfile.xxx" /> 
     38        <IgnoreDir path="dir/path" /> 
    3839        --> 
    3940 
  • FCKeditor/trunk/editor/fckeditor.html

    r1565 r1596  
    198198        </script> 
    199199        <script type="text/javascript"> 
     200 
     201// Adobe AIR compatibility file. 
     202if ( FCKBrowserInfo.IsAIR ) 
     203        LoadScript( 'js/fckadobeair.js' ) ; 
    200204 
    201205if ( FCKBrowserInfo.IsIE ) 
  • FCKeditor/trunk/editor/_source/classes/fckeditingarea.js

    r1565 r1596  
    133133                        oDoc.close() ; 
    134134                } 
     135 
     136                if ( FCKBrowserInfo.IsAIR ) 
     137                        FCKAdobeAIR.EditingArea_Start( oDoc, html ) ; 
    135138 
    136139                // Firefox 1.0.x is buggy... ohh yes... so let's do it two times and it 
  • FCKeditor/trunk/editor/_source/classes/fckpanel.js

    r1565 r1596  
    8181                oDocument.close() ; 
    8282 
     83                if( FCKBrowserInfo.IsAIR ) 
     84                        FCKAdobeAIR.Panel_Contructor( oDocument, window.document.location ) ; 
     85 
    8386                FCKTools.AddEventListenerEx( oIFrameWindow, 'focus', FCKPanel_Window_OnFocus, this ) ; 
    8487                FCKTools.AddEventListenerEx( oIFrameWindow, 'blur', FCKPanel_Window_OnBlur, this ) ; 
  • FCKeditor/trunk/editor/_source/fckeditorapi.js

    r1565 r1596  
    4040                // objects that aren't really FCKeditor instances. 
    4141                var sScript = 
    42                         'var FCKeditorAPI = {' + 
     42                        'window.FCKeditorAPI = {' + 
    4343                                'Version : "[Development]",' + 
    4444                                'VersionBuild : "[DEV]",' + 
     
    112112                                eval.call( oParentWindow, sScript ) ; 
    113113                        } 
     114                        else if( FCKBrowserInfo.IsAIR ) 
     115                        { 
     116                                FCKAdobeAIR.FCKeditorAPI_Evaluate( oParentWindow, sScript ) ; 
     117                        } 
    114118                        else if ( FCKBrowserInfo.IsSafari || FCKBrowserInfo.IsGecko19 ) 
    115119                        { 
  • FCKeditor/trunk/editor/_source/internals/fckbrowserinfo.js

    r1565 r1596  
    3232        IsSafari        : s.Contains(' applewebkit/'),          // Read "IsWebKit" 
    3333        IsOpera         : !!window.opera, 
     34        IsAIR           : s.Contains(' adobeair/'), 
    3435        IsMac           : s.Contains('macintosh') 
    3536} ; 
  • FCKeditor/trunk/editor/_source/internals/fcktoolbarset.js

    r1565 r1596  
    5151                        if ( oOutMatch ) 
    5252                        { 
    53                                 eToolbarTarget = eval( 'parent.' + oOutMatch[1] ).document.getElementById( oOutMatch[2] ) ; 
     53                                if ( FCKBrowserInfo.IsAIR ) 
     54                                        FCKAdobeAIR.ToolbarSet_GetOutElement( window, oOutMatch ) ; 
     55                                else 
     56                                        eToolbarTarget = eval( 'parent.' + oOutMatch[1] ).document.getElementById( oOutMatch[2] ) ; 
    5457                        } 
    5558                        else 
     
    112115                        eTargetDocument.close() ; 
    113116 
     117                        if( FCKBrowserInfo.IsAIR ) 
     118                                FCKAdobeAIR.ToolbarSet_InitOutFrame( eTargetDocument ) ; 
     119 
    114120                        FCKTools.AddEventListener( eTargetDocument, 'contextmenu', FCKTools.CancelEvent ) ; 
    115121 
  • FCKeditor/trunk/fckeditor.js

    r1565 r1596  
    288288        // Opera 9.50+ 
    289289        if ( window.opera && window.opera.version && parseFloat( window.opera.version() ) >= 9.5 ) 
    290                         return true ; 
     290                return true ; 
     291 
     292        // Adobe AIR 
     293        // Checked before Safari because AIR have the WebKit rich text editor 
     294        // features from Safari 3.0.4, but the version reported is 420. 
     295        if ( sAgent.indexOf( ' adobeair/' ) != -1 ) 
     296                return ( sAgent.match( / adobeair\/(\d+)/ )[1] >= 1 ) ; // Build must be at least v1 
    291297 
    292298        // Safari 3+ 
  • FCKeditor/trunk/_whatsnew.html

    r1593 r1596  
    4141                        New (and cool!) floating dialog system</strong>, avoiding problems with popup blockers 
    4242                        and enhancing the editor usability.</li> 
     43                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1886">#1886</a>] <strong> 
     44                        Adobe AIR</strong> compatibility.</li> 
    4345                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/123">#123</a>] Full support 
    4446                        for <strong>document.domain</strong> with automatic domain detection.</li>