您现在的位置是: 首页 >  技术分享 > 

ecshop中fck编辑器在 IE10不兼容
叶子 2014-05-16 11:10:58

ecshop的小技巧,希望大家用的到。

1.在 fckeditor.js 文件 > 方法: FCKeditor_IsCompatibleBrowser

找到这行 >>

   var sBrowserVersion = navigator.appVersion.match(/MSIE (...)/)[1] ;
    替换成
   var sBrowserVersion = navigator.appVersion.match(/MSIE ([d.]+)/)[1] ;
2.在fckeditorcode_ie.js这个文件 找到
e.scopeName!=\'HTML\'
把if条件改为
if(FCKBrowserInfo.IsIE&& e.scopeName && e.scopeName!=\'HTML\')
找到
D.parentElement().document!=B
把if条件改为
if(D.parentElement().document && D.parentElement().document!=B)
找到
B.open(\"GET\",A,false);
改为
B.open(\"GET\",A,false);
try {
B.responseType = \"msxml-document\";
} catch(e) {}
B.send(null);


yezismile wechat
欢迎关注博主公众号
分享:

Copyright © 2023
www.yezismile.com All rights reserved. 京ICP备15029736号-1