| | 32 | // #1645: Alert the user if opening FCKeditor in FF3 from local filesystem |
| | 33 | // without security.fileuri.strict_origin_policy disabled. |
| | 34 | if ( 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 | "security.fileuri.strict_origin_policy" 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 | |