Last active
December 17, 2015 03:18
-
-
Save stevewithington/5541769 to your computer and use it in GitHub Desktop.
Mura CMS : Programmatically allow CKFinder to accept new file extensions.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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