CKfinder (1.4.11) & IE11

I recently had a clients older site stop working with CKfinder and IE11. Here’s how that worked out ….

Using the IE11 Dev tools I could see that CKfinder was loading “ckfinder_gecko.js” in which the javascript error was being thrown. IE 11 tries to be fancy and since it’s so new and sparkly it tells websites that its actually firefox (gecko). The old CKfinder then takes it at its word and returns the gecko compatible javascript, which IE doesn’t like.

I modified ckfinder.html line 36 from

var sSuffix = /msie/.test(navigator.userAgent.toLowerCase()) ? ‘ie’ : ‘gecko’;


var sSuffix = /trident/.test(navigator.userAgent.toLowerCase()) ? ‘ie’ : ‘gecko’;

This lets IE11 get the right javascript file again.

I then found IE needed to be running with compatability, so into the header goes

<meta http-equiv=”X-UA-Compatible” content=”IE=9″ />

This got it working, although there’s still something screwy about the hight calculations when it does load.