Ticket #1645: 1645_pre.patch

File 1645_pre.patch, 1.8 KB (added by Martin Kou, 16 years ago)
  • editor/fckeditor.html

     
    3030        <meta http-equiv="Cache-Control" content="public">
    3131        @Packager.RemoveLine -->
    3232        <script type="text/javascript">
     33// #1645: Alert the user if opening FCKeditor in FF3 from local filesystem
     34// without security.fileuri.strict_origin_policy disabled.
     35if ( document.location.protocol == 'file:' )
     36{
     37        try
     38        {
     39                var d = window.parent.document.domain ;
     40        }
     41        catch ( e )
     42        {
     43                window.addEventListener( 'load', function()
     44                                {
     45                                        document.body.innerHTML = '<p>Your browser security settings don\'t allow FCKeditor to be opened from \
     46                                        the local filesystem. Please go to about:config and disable the \
     47                                        option "security.fileuri.strict_origin_policy" and load this page again.</p>';
     48                                }, false );
     49        }
     50}
    3351
    3452// Save a reference to the default domain.
    3553var FCK_ORIGINAL_DOMAIN ;
     
    192210
    193211        </script>
    194212        <script type="text/javascript">
    195 
    196213// Adobe AIR compatibility file.
    197214if ( FCKBrowserInfo.IsAIR )
    198215        LoadScript( 'js/fckadobeair.js' ) ;
  • _whatsnew.html

     
    6464                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2149">#2149</a>] CSS urls
    6565                        with querystring parameters were not being accepted for CSS values in the configuration
    6666                        file (like EditorAreaCSS).</li>
     67                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1645">#1645</a>] Added a warning message for
     68                        Firefox 3 users opening FCKeditor from the local filesystem.</li>
    6769        </ul>
    6870        <p>
    6971        </p>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy