(Created page with 'CKFinder is a plugin-based application and as such can be relatively easy extended. Enabling JavaScript plugins Enabling PHP plugins […') |
(Article contents proof-read and formatted, some replaced with a template) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{CKFinder_2.x Plugins Introduction}} | |
− | + | == 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>): | |
− | [[/Writing_JavaScript|Writing JavaScript plugins]] | + | |
− | [[/Writing_PHP|Writing PHP plugins]] | + | <source lang="php"> |
+ | include_once "plugins/imageresize/plugin.php"; | ||
+ | </source> | ||
+ | |||
+ | == Related topics == | ||
+ | * [[/Writing_JavaScript|Writing JavaScript plugins]] | ||
+ | * [[/Writing_PHP|Writing PHP plugins]] |
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";