当你把帝国cms7.0架设在一个二级域名上,并且使用的帝国cms自带的编辑器 fckeditor,会弹出js错误,编辑器文本框无法操作。
Blocked a frame with origin "http://www.zhuxianfei.com" from accessing a frame with origin "http://xxx.zhuxianfei.com". The frame requesting access set "document.domain" to "zhuxianfei.com", but the frame being accessed did not. Both must set "document.domain" to the same value to allow access
这是因为如果一个页面中引入多个iframe,要想能够操作所有iframe,必须都得设置相同domain。
解决办法:
换了编辑器把,FCK实在有点过时了
在帝国cms后台设置cookie作用域,比如我的域名如下设置
然后更新一下
更新数据库缓存
批量更新动态页面
再试下就可以了...
上一篇: 让帝国cms搜索页模板支持php代码
下一篇: 帝国cms获取cdn后的客户端的真实IP