Last month, some one reported bug about the text editor of my application in IE10. When I checked it, BOOM! yes. We have problem with it.
I use FCKeditor 2.6.5 and then I tried upgrade to 2.6.9 version. But it’s not working either. However, the FCK site still has a demo for it that fails with IE10 anyway http://cksource.com/ckfinder/demo#fckeditor (you can not go to that URL because now it will redirect to http://cksource.com/ckfinder/demo#standalone 😀 )
This is what I’ve done trying to fixed the problem.
Open file fckeditor.js.
Find this :
var sBrowserVersion = navigator.appVersion.match(/MSIE (...)/)[1] ;
replace with
var sBrowserVersion = navigator.appVersion.match(/MSIE ([\d.]+)/)[1] ;
Open 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 condition to
if(D.parentElement().document && D.parentElement().document!=B)
find
B.open("GET",A,false);
and then add this
B.open("GET",A,false); try {B.responseType = "msxml-document"; } catch(e) {} B.send(null);
In /editor/filemanager/browser/default/js/fckxml.js look for
oXmlHttp.send( null ) ;
After this line, add
try { oXmlHttp.responseType = 'msxml-document'; } catch(e){}
actually there is still a problem with this FCKEeditor. Sometimes another error will appear. From the developer tools of IE, you will see that the problem is from pasteHTML() function. About pasteHTML function, you can check it from http://msdn.microsoft.com/en-us/library/ie/ms536656(v=vs.85).aspx
Hope this article can help you 🙂
Great solution, Thanks.
your welcome ^^