Changeset 2095

Show
Ignore:
Timestamp:
2008-06-19 06:34:43 (6 months ago)
Author:
martinkou
Message:

Fixed #2018 : Reversed the fix for #183 which broke FCKeditorAPI's cleanup logic. A new configuration directive MsWebBrowserControlCompat has been added for those who wish to force the #183 fix to be enabled.

Location:
FCKeditor/trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/classes/fckiecleanup.js

    r1565 r2095  
    4444function FCKIECleanup_Cleanup() 
    4545{ 
    46         if ( !this._FCKCleanupObj || !window.FCKUnloadFlag ) 
     46        if ( !this._FCKCleanupObj || ( FCKConfig.MsWebBrowserControlCompat && !window.FCKUnloadFlag ) ) 
    4747                return ; 
    4848 
  • FCKeditor/trunk/editor/_source/fckeditorapi.js

    r1805 r2095  
    165165function FCKeditorAPI_Cleanup() 
    166166{ 
    167         if ( ! window.FCKUnloadFlag ) 
     167        if ( window.FCKConfig && FCKConfig.MsWebBrowserControlCompat  
     168                        && !window.FCKUnloadFlag ) 
    168169                return ; 
    169170        delete FCKeditorAPI.Instances[ FCK.Name ] ; 
     
    171172function FCKeditorAPI_ConfirmCleanup() 
    172173{ 
    173         window.FCKUnloadFlag = true ; 
     174        if ( window.FCKConfig && FCKConfig.MsWebBrowserControlCompat ) 
     175                window.FCKUnloadFlag = true ; 
    174176} 
    175177FCKTools.AddEventListener( window, 'unload', FCKeditorAPI_Cleanup ) ; 
  • FCKeditor/trunk/fckconfig.js

    r2019 r2095  
    315315FCKConfig.BackgroundBlockerColor = '#ffffff' ; 
    316316FCKConfig.BackgroundBlockerOpacity = 0.50 ; 
     317 
     318FCKConfig.MsWebBrowserControlCompat = false ; 
  • FCKeditor/trunk/_whatsnew.html

    r2094 r2095  
    5656                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2127">#2127</a>] Changed floating dialogs to use 
    5757                        fixed positioning so that they are no longer affected by scrolling.</li> 
     58                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2018">#2018</a>] Reversed the fix for 
     59                        <a target="_blank" href="http://dev.fckeditor.net/ticket/183">#183</a> which broke FCKeditorAPI's cleanup 
     60                        logic. A new configuration directive <strong>MsWebBrowserControlCompat</strong> has been added 
     61                        for those who wish to force the #183 fix to be enabled.</li>  
    5862        </ul> 
    5963        <p>