FCKeditor Integration

This website contains links to software which is no longer maintained. For the latest documentation about current CKSource projects, including software like CKEditor 4/CKEditor 5, CKFinder 3, Cloud Services, Letters, Accessibility Checker, please visit the new documentation website.

CKFinder comes with built-in API 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' ;
 FCKConfig.LinkUploadURL = '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files' ;
 FCKConfig.ImageUploadURL = '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images' ;
 FCKConfig.FlashUploadURL = '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash' ;

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

The SetupFCKeditor Method

The FileBrowser control in the CKFinder integration for ASP.NET, offers a simple solution to automatically configure FCKeditor in a single call. It is enough to use the SetupFCKeditor method for that. For example:

protected override void OnLoad( EventArgs e )
    CKFinder.FileBrowser _FileBrowser = new CKFinder.FileBrowser();
    _FileBrowser.BasePath = "/ckfinder/" ;
    _FileBrowser.SetupFCKeditor( FCKeditor1 );

The above example will configure the FCKeditor instance with id "FCKeditor1".

Note that the SetupFCKeditor method accepts a single parameter of type "object". This was done so there are no dependencies between the CKFinder and the FCKeditor assemblies. But, in any case, the method accepts only objects of type FredCK.FCKeditorV2.FCKeditor.

This page was last edited on 14 May 2010, at 19:12.