I've taken over a project at work which used an old (I don't know which as there are no version numbers in the code) version of CKFinder.
I've updated it to the latest 2.0.2 and have noticed a few changes, e.g. selectFunctionData is now called selectActionData. This is fine, but whereas selectFunctionData used to return the fileID as part of the data, selectActionData does not.
This seems to be a bit of an issue for me. Can I obtain this data from anywhere else?
I've updated it to the latest 2.0.2 and have noticed a few changes, e.g. selectFunctionData is now called selectActionData. This is fine, but whereas selectFunctionData used to return the fileID as part of the data, selectActionData does not.
This seems to be a bit of an issue for me. Can I obtain this data from anywhere else?
Re: Version 2.0.2 - selectActionData and fileID?
Re: Version 2.0.2 - selectActionData and fileID?
Check the documentation for selectActionFunction
There is a nice example. Not sure what did you mean with fileID, but CKFinder 2.x also returns fileUrl and some extra information about the file.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Version 2.0.2 - selectActionData and fileID?
The example in the documentation is only for CKFinder in standalone mode. It doesn't show how to implement selectActionFunction for when CKFinder is integrated with CKEditor.
My assumption would be that one should edit the config.js file and add in config.selectActionFunction = function(){}... but this doesn't work
Re: Version 2.0.2 - selectActionData and fileID?
I have added the possibility to execute the custom function to the list of feature requests.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+