I use CKFinder pop up but when i tried to upload. Firefox shows this error message
"window.parent.CKFinder is undefined" so I can't open upload diablog
this is my code
function BrowseServer()
{
var finder = new CKFinder();
finder.basePath = '../../'; // The path for the installation of CKFinder (default = "/ckfinder/").
finder.selectActionFunction = SetFileField;
finder.popup();
}
How to solve this?
Thank You.
"window.parent.CKFinder is undefined" so I can't open upload diablog
this is my code
function BrowseServer()
{
var finder = new CKFinder();
finder.basePath = '../../'; // The path for the installation of CKFinder (default = "/ckfinder/").
finder.selectActionFunction = SetFileField;
finder.popup();
}
How to solve this?
Thank You.
Re: can't open upload diablog
Re: can't open upload diablog
Re: can't open upload diablog
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: can't open upload diablog
It worked fine from the _samples folder, but when I copied the popup.html file and served it from within my Cake PHP application, the dreaded "window.parent.CKfinder" error occurred if you clicked any of the top links (upload, help, settings etc.).
The fix for me was to hack the ckfinder.js code.
I searched for all instances of "window.parent.CKfinder" and replaced them with "window.CKfinder".
This didn't seem to break anything, even the samples still work.
Wasn't fun trying to hack minified code like this. Would be nice to have a nicely formatted version for those moments when you have no choice but to hack-it!