Changeset 2257

Show
Ignore:
Timestamp:
2008-07-22 09:36:08 (6 months ago)
Author:
martinkou
Message:

Added warning message when the Flash sample is loaded from local filesystem.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/branches/features/new_samples/_samples/html/sample16.html

    r2235 r2257  
    5454                                <td style="width: 100%"> 
    5555                                        <script type="text/javascript"> 
     56if ( document.location.protocol == 'file:' ) 
     57        alert( 'Warning: This samples does not work when loaded from local filesystem due to security restrictions implemented in Flash.' 
     58                        + '\n\nPlease load the sample from a web server instead.') ; 
    5659<!-- 
    5760// Automatically calculates the editor base path based on the _samples directory.