|
|
Line 17: |
Line 17: |
| * [[/File system Encoding|File system Encoding]] | | * [[/File system Encoding|File system Encoding]] |
| | | |
− | == JavaScript Configuration ==
| + | {{CKFinder_2.x JavaScript Configuration|language=PHP}} |
− | | |
− | CKFinder configuration in the JavaScript language is based on editing the '''config.js''' file.
| |
− | Unlike the PHP configuration, it is more focused on the interface.<br>
| |
− | Below you'll find some most commonly used configuration settings:
| |
− | | |
− | <table>
| |
− | <tr valign="top">
| |
− | <td style="width:130px">
| |
− | * [http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.height height]
| |
− | * [http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.width width]
| |
− | * [http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.language language]
| |
− | * [http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.skin skin]
| |
− | </td>
| |
− | <td style="width:130px">
| |
− | * [http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.callback callback]
| |
− | * [http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.selectActionFunction selectActionFunction]
| |
− | * [http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.startupPath startupPath]
| |
− | * [http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.rememberLastFolder rememberLastFolder]
| |
− | </td>
| |
− | <td>
| |
− | * [http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.disableHelpButton disableHelpButton]
| |
− | * [http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.extraPlugins extraPlugins]
| |
− | </td>
| |
− | </tr>
| |
− | </table>
| |
− | | |
− | For the list of all available configuration options, check the [http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html CKFinder API documentation].
| |
− | | |
− | === Example ===
| |
− | A sample config.js:
| |
− | <source>
| |
− | CKFinder.customConfig = function( config )
| |
− | {
| |
− | config.skin = 'v1';
| |
− | config.language = 'fr';
| |
− | }; | |
− | </source>
| |
Revision as of 12:23, 18 May 2010
Server Side Configuration
CKFinder configuration in the PHP language is based on editing the config.php file. To learn more go throughout the following sections:
JavaScript Configuration
CKFinder configuration in JavaScript is based on editing the config.js
file.
Unlike the PHP configuration, it is more focused on the interface.
Below you will find some most commonly used configuration settings:
For the list of all available configuration options refer to the CKFinder API documentation.
Example
Below you can find a sample config.js
file.
CKFinder.customConfig = function( config )
{
config.skin = 'v1';
config.language = 'fr';
};