I am able to use the popup example in the ckfinder samples folder with no problems at all. However, when I copy the example page (popup.html) to a new folder it now longer works properly. The actual popup is opening and I can see all of my files and folders no problem but I just can't upload - actually non of the buttons in the top bar work (Upload, Refresh, Settings, Help). I get the following error in firebug console "window.parent.CKFinder is undefined" (without the quotes). This problem is happening in all browsers that I have tested (IE, Firefox, Safari and Chrome).
So to clarify exactly what I have done:
I moved the popup.html file from:
/ckfinder/_samples/popup.html
to:
/testfolder/popup.html
and modify the popup.html to correctly reference ckfinder.js and the finder.basepath (see below).
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CKFinder - Sample - Popup</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="robots" content="noindex, nofollow" /> <link href="sample.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="/ckfinder/ckfinder.js"></script> <script type="text/javascript"> function BrowseServer() { // You can use the "CKFinder" class to render CKFinder in a page: var finder = new CKFinder(); finder.basePath = '/ckfinder/'; finder.selectActionFunction = SetFileField; finder.SelectFunction = 'ShowFileInfo'; finder.popup(); } // This is a sample function which is called when a file is selected in CKFinder. function SetFileField( fileUrl ) { document.getElementById( 'xFilePath' ).value = fileUrl; } </script> </head> <body> <h1> CKFinder - Sample - Popup<br /> </h1> <p> Selected File URL<br /> <input id="xFilePath" name="FilePath" type="text" size="60" /> <input type="button" value="Browse Server" onclick="BrowseServer();" /> </p> </body> </html>
Re: ckfinder popup upload problem
Sample directory works _perfectly_, but the minute you move the sample code out to a different folder, it's shot. Cannot see what I'm doing wrong.
Anyone??
Re: ckfinder popup upload problem
CKEditor and CKFinder integrate fine, its only when an instance of CKFinder is launched using finder.popup();
Re: ckfinder popup upload problem
I've tried reproducing it locally but it works for me. What I did was:
- downloaded CKFinder 2.0.1 here: http://ckfinder.com/download
- enabled CKFinder in config.php
- moved popup.html from ckfinder/_samples into ckfinder folder
- changed in popup.html the following:
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: ckfinder popup upload problem
Apologies for the delay. CKFinder 2.0.2 is now available. All popup issues should be gone now.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: ckfinder popup upload problem
It's only an iExplorer problem. Firefox, Opera and Safari works.
Re: ckfinder popup upload problem
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: ckfinder popup upload problem
Please help!
Re: ckfinder popup upload problem
@peterw89 - could you please provide more details? Does it happen when running Firefox in safe mode?
Can you reproduce it on our demo page?
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+