Hi,
I've just upgraded to CKFinder 2.0 and I can't make things work. I've already read the migration docs and adopted the new coding standards. By the way, i'd like to congratulate for the effort on the API docs, it was so needed.
It seems to crash when using 'null' as a parameter for setupCKEditor.
I've used the wizard to see that CKFinder is correctly installed. I've also tried the _samples example 'ckeditor.html', that works fine if I try it as I downloaded, but if you modify the code at the end where...
and put instead:
it throws an error 'jU is not defined'.
Am I doing something wrong? I also tried to put the line before the CKEDITOR.replace. It seems like a bug for me...
Thank you for your help!
I've just upgraded to CKFinder 2.0 and I can't make things work. I've already read the migration docs and adopted the new coding standards. By the way, i'd like to congratulate for the effort on the API docs, it was so needed.
It seems to crash when using 'null' as a parameter for setupCKEditor.
I've used the wizard to see that CKFinder is correctly installed. I've also tried the _samples example 'ckeditor.html', that works fine if I try it as I downloaded, but if you modify the code at the end where...
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, '../' ) ;
and put instead:
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(null, '../' ) ;
it throws an error 'jU is not defined'.
Am I doing something wrong? I also tried to put the line before the CKEDITOR.replace. It seems like a bug for me...
Thank you for your help!
Re: Can't instantiate CKFinder 2.0 with 'null' as editorObj
var finder = new CKFinder() ;
finder.BasePath ="ckeditor/ckfinder/";
finder.SelectFunction = callbackfunction;
finder.Popup();
Else i don't understand why you want do ... if it's called setupCKEditor, it's in order to setup CKFinder IN CKEditor, not in a 'null' element...
Re: Can't instantiate CKFinder 2.0 with 'null' as editorObj
Hi Kolibot,
That was an option I was already using on v1.
I'm using 'null' and not an instance object because i have several instances of CKEditor in my site, and that allows me to apply this CKFinder config to all the instances of CKEditor and not only this one as seen on http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.html#.setupCKEditor
Thank you for your answer anyway
Re: Can't instantiate CKFinder 2.0 with 'null' as editorObj
Re: Can't instantiate CKFinder 2.0 with 'null' as editorObj
Oops... if that's the only way, that leaves me a lot of work to do
I was happily using this feature in v1 without problems, I hope there is another way, since it's still on documentation.
TY!
Re: Can't instantiate CKFinder 2.0 with 'null' as editorObj
Hi,
Yes it's still possible to pass "null" there, however we've realized that it in fact doesn't work after we released CKFinder 2.0.
I uploaded fixed files again today , if you download them, this integration method should be working fine again.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Can't instantiate CKFinder 2.0 with 'null' as editorObj
Re: Can't instantiate CKFinder 2.0 with 'null' as editorObj
Yeah I've updated my scripts too, just flawless !