當(dāng)使用ie10時(shí)fckeditor編輯器不顯示工具條,可以用以下三種方法解決:
第一種方法、瀏覽器設(shè)置兼容模式
打開ie,點(diǎn)擊“工具”菜單,選擇“兼容性視圖設(shè)置”,勾選“在兼容性視圖中顯示所有網(wǎng)站”選項(xiàng)即可。
第二種方法、在使用編輯器的網(wǎng)頁(yè)的:
<meta http-equiv=content-type content=text/html; charset=gbk>
下面加
<meta http-equiv=x-ua-compatible content=ie=emulateie7 />
第三種方法、修改編輯器本身js文件:
修改編輯器目錄下的 /editor/js/fckeditorcode_ie.js 文件,查找
b.open(get,a,false);
在后面加上:
try{b.responsetype='msxml-document';}catch(e){}
即為如下:
b.open(get,a,false);try{b.responsetype='msxml-document';}catch(e){}b.send(null);
(ps:帝國(guó)cms后臺(tái)編輯器目錄為 /e/admin/ecmseditor/infoeditor/、前臺(tái)編輯器目錄為 /e/data/ecmseditor/infoeditor/ )
以上三種方法可依自己實(shí)際情況使用。
更多信息請(qǐng)查看IT技術(shù)專欄