Difference between revisions of "Template:CKFinder 2.x JavaScript Configuration"

This website contains links to software which is either no longer maintained or will be supported only until the end of 2019 (CKFinder 2). For the latest documentation about current CKSource projects, including software like CKEditor 4/CKEditor 5, CKFinder 3, Cloud Services, Letters, Accessibility Checker, please visit the new documentation website.

If you look for an information about very old versions of CKEditor, FCKeditor and CKFinder check also the CKEditor forum, which was closed in 2015. If not, please head to StackOverflow for support.

(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 the JavaScript language is based on editing the '''config.js''' file.
+
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'll find some most commonly used configuration settings:
+
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, check the [http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.config.html CKFinder API documentation].
+
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 ===
A sample config.js:
+
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';
};
This page was last edited on 28 March 2011, at 14:59.