Plugins"

This website contains links to software which is either no longer maintained or will be supported only until the end of 2019 (CKFinder 2). 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.

If you look for an information about very old versions of CKEditor, FCKeditor and CKFinder check also the CKEditor forum, which was closed in 2015. If not, please head to StackOverflow for support.

Line 1: Line 1:
 
CKFinder is a plugin-based application and as such can be relatively easy extended.
 
CKFinder is a plugin-based application and as such can be relatively easy extended.
  
* [[/Enabling_JavaScript|Enabling JavaScript plugins]]
+
== Enabling JavaScript Plugins ==
* [[/Enabling_PHP|Enabling PHP plugins]]
+
 
 +
To add a plugin to CKFinder, upload it to the plugins folder and enable it using the [http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.extraPlugins extraPlugins] configuration option in '''config.js''':
 +
 
 +
<source>
 +
CKFinder.customConfig = function( config )
 +
{
 +
config.extraPlugins = 'dummy';
 +
};
 +
</source>
 +
 
 +
== Enabling PHP Plugins ==
 +
 
 +
To add a plugin to CKFinder, upload it to the plugins folder and add an include_once/require_once statement in the PHP configuration file ('''config.php'''):
 +
 
 +
<source lang="php">
 +
include_once "plugins/imageresize/plugin.php";
 +
</source>
 +
 
 +
== Related topics ==
 
* [[/Writing_JavaScript|Writing JavaScript plugins]]
 
* [[/Writing_JavaScript|Writing JavaScript plugins]]
 
* [[/Writing_PHP|Writing PHP plugins]]
 
* [[/Writing_PHP|Writing PHP plugins]]

Revision as of 17:32, 17 May 2010

CKFinder is a plugin-based application and as such can be relatively easy extended.

Enabling JavaScript Plugins

To add a plugin to CKFinder, upload it to the plugins folder and enable it using the extraPlugins configuration option in config.js:

CKFinder.customConfig = function( config )
{
	config.extraPlugins = 'dummy';
};

Enabling PHP Plugins

To add a plugin to CKFinder, upload it to the plugins folder and add an include_once/require_once statement in the PHP configuration file (config.php):

include_once "plugins/imageresize/plugin.php";

Related topics