Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FCKEditor doesn't work in IE10

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?

like image 693
user1820034 Avatar asked Nov 30 '12 05:11

user1820034


1 Answers

//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);
like image 175
meexplorer Avatar answered Sep 20 '22 13:09

meexplorer