Changeset 69


Ignore:
Timestamp:
12/30/06 11:37:59 (8 years ago)
Author:
alfonsoml
Message:

updated to trunk rev 66

Location:
FCKeditor/branches/developers/alfonsoml
Files:
4 edited
3 copied

Legend:

Unmodified
Added
Removed
  • FCKeditor/branches/developers/alfonsoml/editor/_packager.xml

    r67 r69  
    4141                <File path="editor/_source/internals/fcktools_ie.js" /> 
    4242                <File path="editor/_source/fckeditorapi.js" /> 
     43                <File path="editor/_source/classes/fckimagepreloader.js" /> 
    4344 
    4445                <File path="editor/_source/internals/fckregexlib.js" /> 
     
    123124                <File path="editor/_source/internals/fcktools_gecko.js" /> 
    124125                <File path="editor/_source/fckeditorapi.js" /> 
     126                <File path="editor/_source/classes/fckimagepreloader.js" /> 
    125127 
    126128                <File path="editor/_source/internals/fckregexlib.js" /> 
  • FCKeditor/branches/developers/alfonsoml/editor/_source/fckscriptloader.js

    r59 r69  
    7777FCKScriptLoader.AddScript( 'FCKConstants' ) ; 
    7878FCKScriptLoader.AddScript( 'FCKJSCoreExtensions' ) ; 
     79FCKScriptLoader.AddScript( 'FCKImagePreloader'  , 'classes/' ) ; 
    7980FCKScriptLoader.AddScript( 'FCKBrowserInfo'             , 'internals/'  , ['FCKJSCoreExtensions'] ) ; 
    8081FCKScriptLoader.AddScript( 'FCKConfig'                  , 'internals/' ) ; 
     
    8990FCKScriptLoader.AddScript( 'FCKListHandler'             , 'internals/'  , ['FCKJSCoreExtensions','FCKDomTools','FCKTools'], FCK_GENERIC ) ; 
    9091FCKScriptLoader.AddScript( 'FCKW3CRange'                , 'classes/'    , ['FCKDomTools','FCKTools','FCKDocumentFragment'], FCK_GENERIC ) ; 
    91  
    9292// #################################### 
  • FCKeditor/branches/developers/alfonsoml/editor/_source/internals/fck_ie.js

    r67 r69  
    160160} 
    161161 
    162 var FCK_PreloadImages_Count = 0 ; 
    163 var FCK_PreloadImages_Images = new Array() ; 
    164  
    165162function FCK_PreloadImages() 
    166163{ 
    167         // Get the images to preload. 
    168         var aImages = FCKConfig.PreloadImages || [] ; 
    169          
    170         if ( typeof( aImages ) == 'string' ) 
    171                 aImages = aImages.split( ';' ) ; 
     164        var oPreloader = new FCKImagePreloader() ; 
     165         
     166        // Add the configured images. 
     167        oPreloader.AddImages( FCKConfig.PreloadImages ) ; 
    172168 
    173169        // Add the skin icons strip. 
    174         aImages.push( FCKConfig.SkinPath + 'fck_strip.gif' ) ; 
    175          
    176         FCK_PreloadImages_Count = aImages.length ; 
    177  
    178         var aImageElements = new Array() ; 
    179          
    180         for ( var i = 0 ; i < aImages.length ; i++ ) 
    181         { 
    182                 var eImg = document.createElement( 'img' ) ; 
    183                 eImg.onload = eImg.onerror = FCK_PreloadImages_OnImage ; 
    184                 eImg.src = aImages[i] ; 
    185                  
    186                 FCK_PreloadImages_Images[i] = eImg ; 
    187         } 
    188 } 
    189  
    190 function FCK_PreloadImages_OnImage() 
    191 { 
    192         if ( (--FCK_PreloadImages_Count) == 0 ) 
    193                 FCKTools.RunFunction( LoadToolbarSetup ) ; 
     170        oPreloader.AddImages( FCKConfig.SkinPath + 'fck_strip.gif' ) ; 
     171 
     172        oPreloader.OnComplete = LoadToolbarSetup ; 
     173        oPreloader.Start() ; 
    194174} 
    195175 
  • FCKeditor/branches/developers/alfonsoml/editor/fckeditor.html

    r67 r69  
    5757LoadScript( '_source/internals/fcktools_' + sSuffix + '.js' ) ; 
    5858LoadScript( '_source/fckeditorapi.js' ) ; 
     59LoadScript( '_source/classes/fckimagepreloader.js' ) ; 
    5960LoadScript( '_source/internals/fckregexlib.js' ) ; 
    6061LoadScript( '_source/internals/fcklanguagemanager.js' ) ; 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy