Couldn't anybody please put the code how set up your own handler on selectActionFunction?
I put next code in /ckfinder/config.js file:
But it doesn't works at all. When I select the image there is no any alerts.
And I used ckeditor.html example:
What did I do wrong?
I put next code in /ckfinder/config.js file:
CKFinder.customConfig = function( config ) { config.selectActionFunction = function (fileUrl, data) { alert( 'Selected file: ' + fileUrl ); }; };
But it doesn't works at all. When I select the image there is no any alerts.
And I used ckeditor.html example:
//html part <textarea id="editor1" name="editor1" rows="10" cols="80"></textarea> //javascript part var editor = CKEDITOR.replace( 'editor1' ); editor.setData( '<p>Just click the <b>Image</b> or <b>Link</b> button, and then <b>"Browse Server"</b>.</p>' ); CKFinder.setupCKEditor( editor, { basePath : '/ckfinder/' } ) ;
What did I do wrong?
Re: config.selectActionFunction problem for CKEditor integra