(Article contents proof-read and formatted, some replaced with a template) |
|||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | + | {{CKFinder_2.x Plugins Introduction}} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | } | ||
| − | |||
== Enabling PHP Plugins == | == Enabling PHP Plugins == | ||
| − | + | To add a plugin to CKFinder, upload it to the <code>plugins</code> folder and add an <code>include_once</code> or <code>require_once</code> statement in the PHP configuration file (<code>config.php</code>): | |
| − | 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 ( | ||
<source lang="php"> | <source lang="php"> | ||
Latest revision as of 11:38, 1 April 2011
CKFinder is a plugin-based application and as such it can be extended relatively easily.
Enabling JavaScript Plugins
To add a plugin to CKFinder, upload it to the plugins folder and enable it by using the extraPlugins configuration option in the config.js file:
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 or require_once statement in the PHP configuration file (config.php):
include_once "plugins/imageresize/plugin.php";