Skip to content

Instantly share code, notes, and snippets.

@stevewithington
Last active December 17, 2015 03:18
Show Gist options
  • Save stevewithington/5541769 to your computer and use it in GitHub Desktop.
Save stevewithington/5541769 to your computer and use it in GitHub Desktop.
Mura CMS : Programmatically allow CKFinder to accept new file extensions.
<cfscript>
// drop this in your eventHandler.cfc
public void function onSiteCKFinderConfig($) {
var config = arguments.$.event('config');
for (var i=1; i LTE ArrayLen(config.resourceType); i++){
config.resourceType[i].allowedExtensions = ListAppend(config.resourceType[i].allowedExtensions,'abc');
}
arguments.$.event('config',config);
}
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment