Changeset 421

Show
Ignore:
Timestamp:
2007-07-08 17:46:42 (18 months ago)
Author:
alfonsoml
Message:

Fix for #945, it seems that it only failed in Mac (Linux untested), but the workaround doesn't have problems for windows.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/internals/fckconfig.js

    r419 r421  
    3838        // In Windows it is file:// but in MacOs it is file:/// so let's get it automatically 
    3939        var sFullProtocol = document.location.href.match( /^(file\:\/{2,3})/ )[1] ; 
     40        // #945 Opera does strange things with files loaded from the disk, and it fails in Mac to load xml files 
     41        if ( FCKBrowserInfo.IsOpera ) 
     42                sFullProtocol += 'localhost/' ; 
     43 
    4044        FCKConfig.BasePath = sFullProtocol + FCKConfig.BasePath.substring( 0, FCKConfig.BasePath.lastIndexOf( '/' ) + 1) ; 
    4145        FCKConfig.FullBasePath = FCKConfig.BasePath ;