﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
11241	CKFinder in readonly throws JS error	Joel		"When loading a CKFinder instance with readonly = true, the following javascript error is thrown:

{{{
// In IE and Chrome:
Uncaught TypeError: Cannot read property 'pW' of undefined ckfinder.js:7

// In Firefox:
TypeError: as is undefined ckfinder.js:7
}}}

The code in question seems to be this in IE/Chrome:
{{{
L.prototype.setUploadCommand=function(ar,as){var at,au,av,aw;if(!as.pW||as.pW.length<1)return;
}}}
Sorry, no unminimized example.

Finder was created thusly:

{{{
var finder = new CKFinder();
finder.basePath = '/Scripts/ckfinder_pdfmerge/';
finder.readOnly = true;
finder.create();
}}}

Everything seems to work, but the error is very annoying. Browsers tested: Firefox 24, IE 11 and Chrome 31."	Bug	confirmed	Normal		General			CKFinder	
