Hi,
My site manually sets the "document.domain" property in the document's <head>. This appears to conflict with the bowels of FCKEditor -- it throws a "Permission Denied" when trying to access window.parent (specifically, setting window.parent.FCK_STATUS_NOTLOADED in the fck_startup.js file).
An example of how to recreate:
<head>
<script type="text/javascript">
// comment the next line and the script works!
document.domain = "localsldev.com";
</script>
<script type="text/javascript" src="/FCKeditor/fckeditor.js"></script>
</head>
<body>
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.BasePath = '/fckeditor/';
oFCKeditor.Create() ;
</script>
</body>
This affects both FF and IE.
Using a debugger (Venkman and/or MSDEV) shows that our document.domain setting has been overridden when the startup script runs. I haven't seen this before and assume it has something to do with the fancy script loading FCK does... how can I get our property to propagate?
TIA
My site manually sets the "document.domain" property in the document's <head>. This appears to conflict with the bowels of FCKEditor -- it throws a "Permission Denied" when trying to access window.parent (specifically, setting window.parent.FCK_STATUS_NOTLOADED in the fck_startup.js file).
An example of how to recreate:
<head>
<script type="text/javascript">
// comment the next line and the script works!
document.domain = "localsldev.com";
</script>
<script type="text/javascript" src="/FCKeditor/fckeditor.js"></script>
</head>
<body>
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.BasePath = '/fckeditor/';
oFCKeditor.Create() ;
</script>
</body>
This affects both FF and IE.
Using a debugger (Venkman and/or MSDEV) shows that our document.domain setting has been overridden when the startup script runs. I haven't seen this before and assume it has something to do with the fancy script loading FCK does... how can I get our property to propagate?
TIA