(Created page with '== JavaScript Configuration == CKFinder configuration in the JavaScript language is based on editing the '''config.js''' file. Unlike the {{{language}}} configuration, it is mor…') |
(→JavaScript Configuration: Template proof-reading and formatting) |
||
Line 1: | Line 1: | ||
== JavaScript Configuration == | == JavaScript Configuration == | ||
− | CKFinder configuration in | + | CKFinder configuration in JavaScript is based on editing the '''<code>config.js</code>''' file. |
− | Unlike the {{{language}}} configuration, it is more focused on the interface.<br> | + | Unlike the {{{language}}} configuration, it is more focused on the interface.<br /> |
− | Below you | + | Below you will find some most commonly used configuration settings: |
<table> | <table> | ||
<tr valign="top"> | <tr valign="top"> | ||
<td style="width:130px"> | <td style="width:130px"> | ||
− | * [http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.height height] | + | * <code>[http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.height height]</code> |
− | * [http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.width width] | + | * <code>[http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.width width]</code> |
− | * [http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.language language] | + | * <code>[http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.language language]</code> |
− | * [http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.skin skin] | + | * <code>[http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.skin skin]</code> |
</td> | </td> | ||
<td style="width:130px"> | <td style="width:130px"> | ||
− | * [http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.callback callback] | + | * <code>[http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.callback callback]</code> |
− | * [http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.selectActionFunction selectActionFunction] | + | * <code>[http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.selectActionFunction selectActionFunction]</code> |
− | * [http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.startupPath startupPath] | + | * <code>[http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.startupPath startupPath]</code> |
− | * [http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.rememberLastFolder rememberLastFolder] | + | * <code>[http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.rememberLastFolder rememberLastFolder]</code> |
</td> | </td> | ||
<td> | <td> | ||
− | * [http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.disableHelpButton disableHelpButton] | + | * <code>[http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.disableHelpButton disableHelpButton]</code> |
− | * [http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.extraPlugins extraPlugins] | + | * <code>[http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html#.extraPlugins extraPlugins]</code> |
</td> | </td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
− | For the list of all available configuration options | + | For the list of all available configuration options refer to the [http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html CKFinder API documentation]. |
=== Example === | === Example === | ||
− | + | Below you can find a sample <code>config.js</code> file. | |
− | <source> | + | <source lang="javascript"> |
CKFinder.customConfig = function( config ) | CKFinder.customConfig = function( config ) | ||
{ | { |
Latest revision as of 14:59, 28 March 2011
JavaScript Configuration
CKFinder configuration in JavaScript is based on editing the config.js
file.
Unlike the {{{language}}} 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'; };