| 33 | // #1645: Alert the user if opening FCKeditor in FF3 from local filesystem |
| 34 | // without security.fileuri.strict_origin_policy disabled. |
| 35 | if ( 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 style="font-family: arial; font-size: 12px; color: red;"> \ |
| 46 | Your browser security settings don\'t allow FCKeditor to be opened from \ |
| 47 | the local filesystem. Please go to about:config and disable the \ |
| 48 | option "security.fileuri.strict_origin_policy" and load this page again.</p> \ |
| 49 | <p style="font-family: arial; font-size: 12px; color: red;">For more information \ |
| 50 | See our FAQ entry <a href="http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/FAQ#ff3perms"> \ |
| 51 | Why am I getting "Permission denied" errors when I'm \ |
| 52 | opening the FCKeditor HTML samples in Firefox 3 from the local filesystem?</a></p>'; |
| 53 | document.body.style.border = "1px red solid"; |
| 54 | }, false ); |
| 55 | } |
| 56 | } |