Show
Ignore:
Timestamp:
2008-07-25 13:38:23 (6 months ago)
Author:
fredck
Message:

Updated "latest" branch with version 2.6.3 Beta.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/releases/latest/editor/fckeditor.html

    r2127 r2291  
    3030        <script type="text/javascript"> 
    3131 
     32// #1645: Alert the user if opening FCKeditor in FF3 from local filesystem 
     33// without security.fileuri.strict_origin_policy disabled. 
     34if ( document.location.protocol == 'file:' ) 
     35{ 
     36        try 
     37        { 
     38                window.parent.document.domain ; 
     39        } 
     40        catch ( e ) 
     41        { 
     42                window.addEventListener( 'load', function() 
     43                        { 
     44                                document.body.innerHTML = '\ 
     45                                        <div style="border: 1px red solid; font-family: arial; font-size: 12px; color: red; padding:10px;">\ 
     46                                                <p>\ 
     47                                                        <b>Your browser security settings don\'t allow FCKeditor to be opened from\ 
     48                                                        the local filesystem.<\/b>\ 
     49                                                <\/p>\ 
     50                                                <p>\ 
     51                                                        Please open the <b>about:config<\/b> page and disable the\ 
     52                                                        &quot;security.fileuri.strict_origin_policy&quot; option; then load this page again.\ 
     53                                                <\/p>\ 
     54                                                <p>\ 
     55                                                        Check our <a href="http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/FAQ#ff3perms">FAQ<\/a>\ 
     56                                                        for more information.\ 
     57                                                <\/p>\ 
     58                                        <\/div>' ; 
     59                        }, false ) ; 
     60        } 
     61} 
     62 
    3263// Save a reference to the default domain. 
    3364var FCK_ORIGINAL_DOMAIN ; 
     
    223254                        FCKTools.RunFunction( window.onresize ) ; 
    224255 
    225                 _AttachFormSubmitToAPI() ; 
     256                if ( !FCKConfig.PreventSubmitHandler ) 
     257                        _AttachFormSubmitToAPI() ; 
    226258 
    227259                FCK.SetStatus( FCK_STATUS_COMPLETE ) ;