Hi,
I have added a plug in a js file like this
CKFinder.addPlugin( 'myplugin', function( api ) {
var toolId = api.addToolPanel( '<h3 onclick="jsFunc();">My Images</h3>' );
api.showTool( toolId );
} );
now i want to execute a jsFunc(), which is a javascript function. where and how to define it.
I tried a lot but in this js file its not working, however the plugin is displaying fine.
thanks in advance.
regards,
Rizwan Ali
I have added a plug in a js file like this
CKFinder.addPlugin( 'myplugin', function( api ) {
var toolId = api.addToolPanel( '<h3 onclick="jsFunc();">My Images</h3>' );
api.showTool( toolId );
} );
now i want to execute a jsFunc(), which is a javascript function. where and how to define it.
I tried a lot but in this js file its not working, however the plugin is displaying fine.
thanks in advance.
regards,
Rizwan Ali

Re: how to add a new plugin in ckfinder and call javscript o
Purpose of this plugin is to get some other images and saving them in the selected folder.
Re: how to add a new plugin in ckfinder and call javscript o
var finder = new CKFinder(); finder.basePath = '../../'; // The path for the installation of CKFinder (default = "/ckfinder/"). finder.callback = function( api ) { var toolId = api.addToolPanel( '<h3 id="myH3">My Images</h3>' ); api.showTool( toolId ); api.document.getElementById( "myH3" ).onclick = function() { alert( api.getSelectedFolder() ); } }; finder.create();Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+