FCKEditor doesn't work in IE10

user1820034 picture user1820034 · Nov 30, 2012 · Viewed 31.5k times · Source

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:

<meta http-equiv="X-UA-Compatible" content="IE=9" >

into header of my web-page, it doesn't help me. How to make FCKEditor work? Or are there another ways for emulating IE9 within IE10?

Answer

meexplorer picture meexplorer · Dec 27, 2012

//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);