FCKEditor does not work in IE10

FCKEditor is not displayed in IE10. When I switch to IE development tools and switch the browser to IE9, FCKEditor works fine. But when I put the meta tag to emulate IE9:

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

in the title of my webpage, this does not help me. How to make FCKEditor work? Or are there other ways to emulate IE9 in IE10?

+7
source share
5 answers

try it

Mozilla 17

in the file fckeditorcode_gecko.js

find it →

 if (A.IsGecko){var B=s.match(/gecko\/(\d+)/)[1];A.IsGecko10=((B<20051111)||(/rv:1\.7/.test(s)));A.IsGecko19=/rv:1\.9/.test(s);}else A.IsGecko10=false;} 

and replace with →

 if (A.IsGecko){var B=s.match(/gecko\/([0-9.]+)/)[1];if(B != "17.0"){A.IsGecko10=((B<20051111)||(/rv:1\.7/.test(s)));}A.IsGecko19=/rv:1\.9/.test(s);}else A.IsGecko19=true;} 

in fckeditor.php

find it →

 return ($iVersion >= 20030210); 

and replace with →

 //return ($iVersion >= 20030210); return true; 
+4
source

// IE10

in fckeditor.js >: 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

to find

 e.scopeName!='HTML' 

and change if condition:

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

to find

 D.parentElement().document!=B 

and change if:

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

to find

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

and add this:

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

IE10 does not work with the new quirks mode.

You can switch to the older, mainstream mode of the quirks that they are developing, and your problem will be solved. Add the following meta tag:

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

Also, make sure you discover the browser and its version as IE10, and then apply this meta tag.

0
source

Here is what helped me:

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

.

and find and replace the regex in JS ckeditor codes:

replace /MSIE (\d+)/ with /MSIE ([\d.]+)/


Most importantly, be sure to close your browser / tab and reopen the site. Otherwise, this meta tag will not work!

0
source

My solution after several hours of debugging was pretty simple.

I am doing fckeditor.js, including the latest javascript include. If he were buried between a bunch of other js, he would fail in IE 10. When I dropped it to the last javascript file to include it in work.

0
source

All Articles