Opened 4 years ago

Last modified 4 years ago

#11241 confirmed Bug

CKFinder in readonly throws JS error

Reported by: Joel Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: CKFinder Cc:

Description

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.

Change History (1)

comment:1 Changed 4 years ago by Jakub Ś

Keywords: CKFinder added
Status: newconfirmed

Problem can be reproduced from CKFinder 2.4 so this is recent regression.

@req I have also reported this issue on our internal CKFinder bug tracker.

Note: See TracTickets for help on using tickets.
© 2003 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy