onSiteCKFinderConfig
This event enables developers to programmatically access, and manipulate the configuration settings for instances of CKFinder.
Syntax
public void function onSiteCKFinderConfig(m) { // reference to the CKFinder Config var config = arguments.m.event('config'); // do something with the `config` // when finished, this will update the config settings used by CKFinder with your new config arguments.m.event('config', config); }
Example
The following example allows CKFinder to accept a new file extension.
public void function onSiteCKFinderConfig(m) { // reference to the original config var config = arguments.m.event('config'); for (var i=1; i <= ArrayLen(config.resourceType); i++) { config.resourceType[i].allowedExtensions = ListAppend(config.resourceType[i].allowedExtensions, 'cad'); } // set the new config arguments.m.event('config', config); }