Hi,
Using CKFinder with CKEditor no problem but now I want to use it as a standalone solution for selecting existing server files for attachment to database records. My existing set up uses the file upload object but now I want to present a pool of default images for users to select.
So I have a standalone instance working ok - but what to do when a user selects an image? Naturally I am wanting to create a method to populate a hidden field with the value/path of the selected image - how do I initiate/specify a callback upon image selection? I have seen finder.selectFunction in the PHP example but cannot seem to find it within the Javascript API docs - do I need to use PHP?
Using CKFinder with CKEditor no problem but now I want to use it as a standalone solution for selecting existing server files for attachment to database records. My existing set up uses the file upload object but now I want to present a pool of default images for users to select.
So I have a standalone instance working ok - but what to do when a user selects an image? Naturally I am wanting to create a method to populate a hidden field with the value/path of the selected image - how do I initiate/specify a callback upon image selection? I have seen finder.selectFunction in the PHP example but cannot seem to find it within the Javascript API docs - do I need to use PHP?
Re: using selectFunction callback in JavaScript