When I try to integrate ckfinder into ckeditor, Firebug is giving me this error:
s.resourceTypes[0] is undefined
This is the javascript i use to load ckeditor. The commented part is something i tried earlier, but that gave me the same error as when I use CKFinder.SetupCKEditor(this,'/ckfinder/' );.
My config.php contains:
Just ask if you need more information from config.php.
Any ideas on how to fix this?
I did read the documentation, but it doesn't help me.
s.resourceTypes[0] is undefined
This is the javascript i use to load ckeditor. The commented part is something i tried earlier, but that gave me the same error as when I use CKFinder.SetupCKEditor(this,'/ckfinder/' );.
$(document).ready(function()
{
$( 'textarea.editor' ).ckeditor(function(){
CKFinder.SetupCKEditor(this,'/ckfinder/' );
}, {
// filebrowserBrowseUrl : '/ckfinder/ckfinder.html',
// filebrowserImageBrowseUrl : '/ckfinder/ckfinder.html?type=Images',
// filebrowserUploadUrl : '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
// filebrowserImageUploadUrl : '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
//
toolbar :
[
['Cut','Copy','Paste','PasteText','PasteFromWord'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Bold','Italic', 'Underline'],
['NumberedList','BulletedList'],
['Link','Unlink','Anchor', 'Image'],
['Maximize']
],
uiColor : '#9AB8F3',
skin : 'office2003'});
});
My config.php contains:
$baseUrl = '/images/upload/'; $baseDir = resolveUrl($baseUrl); $config['AccessControl'][] = Array( 'role' => '*', 'resourceType' => '*', 'folder' => '/images/upload/', 'folderView' => true, 'folderCreate' => true, 'folderRename' => true, 'folderDelete' => true, 'fileView' => true, 'fileUpload' => true, 'fileRename' => true, 'fileDelete' => true); $config['ResourceType'][] = Array( 'name' => 'Images', 'url' => $baseUrl . 'images', 'directory' => $baseDir . 'images', 'maxSize' => "16M", 'allowedExtensions' => 'bmp,gif,jpeg,jpg,png,avi,iso,mp3', 'deniedExtensions' => '');
Just ask if you need more information from config.php.
Any ideas on how to fix this?
I did read the documentation, but it doesn't help me.

Re: Ckfinder, s.resourceTypes[0] is undefined
Instead of calling CKFinder.SetupCKEditor, try something like
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Ckfinder, s.resourceTypes[0] is undefined
Hi, thanks for your help.
This doesn't work. It still gives me the error.
Do i need to edit anything in my config.php file? I mean, right now, i have 3 $config['ResourceType'] arrays. One with name Files, one Images and one Flash.
Btw: the only thing i want, is to upload images.
This is the javascript i use right now:
$(document).ready(function() { $( 'textarea.editor' ).ckeditor(function(){ // CKFinder.SetupCKEditor(this,'/ckfinder/' );; }, { filebrowserBrowseUrl : '/ckfinder/ckfinder.html?type=Images', filebrowserUploadUrl : '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images', toolbar : [ ['Cut','Copy','Paste','PasteText','PasteFromWord'], ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], ['Bold','Italic', 'Underline'], ['NumberedList','BulletedList'], ['Link','Unlink','Anchor', 'Image'], ['Maximize'] ], uiColor : '#9AB8F3', skin : 'office2003'}); });It still gives me the error (s.resourceTypes[0] is undefined).
Re: Ckfinder, s.resourceTypes[0] is undefined
I can't figure out what it is.. As far as I can see, the resourceTypes are in place.. in config.php.