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 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";