FCKEditor doesn't work in IE10

后端 未结 5 943
予麋鹿
予麋鹿 2021-01-02 19:18

FCKEditor doesn\'t appear in IE10. When I go to IE development tools and switch browser mode to IE9, FCKEditor works all right. But when I put meta tag for emulate IE9:

5条回答
  •  情歌与酒
    2021-01-02 20:11

    //IE10

    in fckeditor.js > method : FCKeditor_IsCompatibleBrowser

    find this:

    var sBrowserVersion = navigator.appVersion.match(/MSIE (.\..)/)[1] ;
    

    and replace with:

    var sBrowserVersion = navigator.appVersion.match(/MSIE ([\d.]+)/)[1] ;
    

    in fckeditorcode_ie.js

    find

    e.scopeName!='HTML' 
    

    and change if condition to:

    if(FCKBrowserInfo.IsIE&& e.scopeName && e.scopeName!='HTML')
    

    find

    D.parentElement().document!=B 
    

    and change if to:

    if(D.parentElement().document && D.parentElement().document!=B)
    

    find

    B.open("GET",A,false); 
    

    and add this:

    B.open("GET",A,false);
    try {
        B.responseType = "msxml-document";
    } catch(e) {};
    B.send(null);
    

提交回复
热议问题