Hi,
I am making a website where I am using CKfinder as a standalone file browser as well as in FCKeditor. I used the javascript popup sample as the base and it worked, however I only want images to be shown, and not all of the files. I know that this can be done by typing '?type=Images' at the end of the url. I was wondering if this can be done by simply passing the type of file to show, eg. Images or Flash, to the '_BuildUrl' function. Is this possible to do?
Also, I saw that there is code in the ckfinder.js file to make an iframe. How do you go about putting this into a page? It would be good to have this, as it definitely looks better.
Any help on this would be much appreciated.
Thanks,
Joel
I am making a website where I am using CKfinder as a standalone file browser as well as in FCKeditor. I used the javascript popup sample as the base and it worked, however I only want images to be shown, and not all of the files. I know that this can be done by typing '?type=Images' at the end of the url. I was wondering if this can be done by simply passing the type of file to show, eg. Images or Flash, to the '_BuildUrl' function. Is this possible to do?
Also, I saw that there is code in the ckfinder.js file to make an iframe. How do you go about putting this into a page? It would be good to have this, as it definitely looks better.
Any help on this would be much appreciated.
Thanks,
Joel
Re: CKfinder js Popup
For now, you would have to modify ckfinder.js and adjust it to your needs.
I understand that you want to open CKFinder with the "Browse Server" button in an iframe instead of in a popup.
I have attached a slightly modified popup sample, I hope this is what you wanted to achieve. Unpack and save it as iframe.html in _samples/js directory.
Attachments:
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: CKfinder js Popup
Re: CKfinder js Popup
If you're still experiencing this problems, try this temporary solution: open files located in the core/js directory (ckfinder_gecko.js, ckfinder_ie.js)
1. Find function bb:
and remove this code:
(this code is responsible for closing CKFinder immediately)
2. Find function gE:
and change it to:
(this should point CKFinder to ShowFileInfo function if it doesn't work)
Let me know if that did the trick.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+