Can the CKFinder finder.SelectFunction function only be in the window scope?
I try to have an object's method called as the SelectFunction, but line 122 in ckfinder.js (functionName.toString().match( /function ([^(]+)/ )[1] fails on that. An anonymous function is also not working and it also fails when I overwrite or set the function in the window scope like window.mySelectFunction = function(){alert('test');}
Is there a way?
Wed, 08/06/2008 - 11:17
#1
Re: CKFinder.SelectFunction can only be in the window scope?
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: CKFinder.SelectFunction can only be in the window scope?
Thanks Wiktor,
Can't it be built so that a function be passed by reference? It should be possible to trigger it by something like parent.opener from the CKFinder like the default filebrowser of the FCKeditor does, wouldn't it?
I really miss this possibility
Taking this one step further, perhaps an event system for the CKfinder is a neat idea: having the possibility to add functions for events like thumClick, thumbSelect, ckfinderClose ...
Is there the possibility to add feature request tickets?
Re: CKFinder.SelectFunction can only be in the window scope?
Re: CKFinder.SelectFunction can only be in the window scope?
you can wrap whatever object, scope or anything else that you want there.
Re: CKFinder.SelectFunction can only be in the window scope?
I tried this earlier and line 122 in ckfinder.js thrown an error on that too.
Re: CKFinder.SelectFunction can only be in the window scope?
yes, I tested it.:
Re: CKFinder.SelectFunction can only be in the window scope?
Nevertheless I really would prefer to pass a function by reference that gets called like e.g. parent.opener.SelectFunction from the CKFinder.