Writing plugins for CKFinder might be fun when you understand how to create them. Below you'll find a short instruction how to do it.
Step1: Create plugin folder
Create a directory for your plugin inside of the "plugins" directory (by default CKFinder comes with three plugins: dummy, fileeditor, imagreresize). Let's use "myplugin".
Step2: Create plugin file
Inside of your plugin's folder ("myplugin") create plugin.js.
Step3: Add plugin dafinition