| 34 | // #1645: Alert the user if opening FCKeditor in FF3 from local filesystem |
| 35 | // without security.fileuri.strict_origin_policy disabled. |
| 36 | if ( document.location.protocol == 'file:' ) |
| 37 | { |
| 38 | try |
| 39 | { |
| 40 | window.parent.document.domain ; |
| 41 | } |
| 42 | catch ( e ) |
| 43 | { |
| 44 | window.addEventListener( 'load', function() |
| 45 | { |
| 46 | document.body.innerHTML = '\ |
| 47 | <div style="border: 1px red solid; font-family: arial; font-size: 12px; color: red; padding:10px;">\ |
| 48 | <p>\ |
| 49 | <b>Your browser security settings don\'t allow FCKeditor to be opened from\ |
| 50 | the local filesystem.<\/b>\ |
| 51 | <\/p>\ |
| 52 | <p>\ |
| 53 | Please open the <b>about:config<\/b> page and disable the\ |
| 54 | "security.fileuri.strict_origin_policy" option; then load this page again.\ |
| 55 | <\/p>\ |
| 56 | <p>\ |
| 57 | Check our <a href="http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/FAQ#ff3perms">FAQ<\/a>\ |
| 58 | for more information.\ |
| 59 | <\/p>\ |
| 60 | <\/div>' ; |
| 61 | }, false ) ; |
| 62 | } |
| 63 | } |
| 64 | |