Log in or register to post comments
Last post
CKFinder integration
All

I have the _sample code working, both in FCKEditor and as standalone. So the tests work. Now how do I get CKFinder to work in the FCKEditor in my actual wiki? I don't understand how to transfer this sample functionality to my live wiki server (on the same Linux box).

Thank you.
ed
Re: CKFinder integration
Check install.txt file attached to CKFinder.

-------------------------------------------------------------------------------
FCKeditor Integrations
-------------------------------------------------------------------------------

CKFinder comes with built it APIs to easily integrate it with FCKeditor. Check
the "_samples" folder for specific examples of it.

To instead configure FCKeditor manually to use CKFinder, just edit the
fckconfig.js file in the FCKeditor directory and modify the following settings:

FCKConfig.LinkBrowserURL = '/ckfinder/ckfinder.html' ;
FCKConfig.ImageBrowserURL = '/ckfinder/ckfinder.html?type=Images' ;
FCKConfig.FlashBrowserURL = '/ckfinder/ckfinder.html?type=Flash' ;

Just change "/ckfinder/" in the above URLs if you have CKFinder installed in a
different place.

Wiktor Walc
CTO
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+

Re: CKFinder integration
I've followed these instructions to the letter. But still I get the default FCKeditor dialog box, without the browse option. Is there something else I might be doing wrong?

ed
Re: CKFinder integration
I've noticed that it makes no difference what I put in:

FCKConfig.LinkBrowserURL = '/ckfinder/ckfinder.html' ;
FCKConfig.ImageBrowserURL = '/ckfinder/ckfinder.html?type=Images' ;
FCKConfig.FlashBrowserURL = '/ckfinder/ckfinder.html?type=Flash' ;

Even if I type in garbage, I still get the same default dialog box.
Re: CKFinder integration
The dialog box that you mention looks just like the image/link properties, they aren't the file browser, and so they aren't affected by any change to those values.

Have you enabled the file browser for those dialogs?
FCKConfig.ImageBrowser = true ;
etc...
Re: CKFinder integration
Yes, for LinkBrowser, ImageBrowser and FlashBrowser, they all = true
Re: CKFinder integration
Hi Edward,

I just missed that small word called "wiki" in your question :)
MediaWiki extension uses it's own dialog boxes for links and images. We have removed the file browser functionality from FCKeditor because we thought that it would be better to stay with the default way of handling uploads in MediaWiki (when you upload a file via MediaWiki, it saves some additional data to the database, perform additional file checks etc.).

Wiktor Walc
CTO
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+

Re: CKFinder integration
OK, thanks for the explanation. Still I prefer the CKFinder way of uploading. It'd be nice to have that integrated into mediawiki.

ed