I have create a simple CKEditor installation using the PHP method as below..
require_once('../includes/ckeditor/ckeditor.php'); $ckeditor = new CKEditor(); $ckeditor->basePath = '/includes/ckeditor/'; $ckeditor->config['width'] = '850'; $ckeditor->config['height'] = '300'; $ckeditor->editor('text_content', stripslashes($HTMLMessage));
I've added kcfinder using the following code within the ckeditor/config.js file
config.filebrowserBrowseUrl = '/kcfinder/browse.php?type=files'; config.filebrowserImageBrowseUrl = '/kcfinder/browse.php?type=images'; config.filebrowserFlashBrowseUrl = '/kcfinder/browse.php?type=flash'; config.filebrowserUploadUrl = '/kcfinder/upload.php?type=files'; config.filebrowserImageUploadUrl = '/kcfinder/upload.php?type=images'; config.filebrowserFlashUploadUrl = '/kcfinder/upload.php?type=flash';
The KCFinder installation is working now - I just cannot pass the correct URL of the selected file - as the script will generate dynamic folders as follows - so user1 can only access their images and not user2 images and vice-versa.
user1/images user2/images
I have found this link which explains the interaction between CKEditor & the File Browser - which method should I use (I'm not 100% clued up on CKEditor so be easy on me please - Can someone explain which kcfinder/ckeditor files I need to edit in relation to the URL below
Thanks in advance
http://docs.cksource.com/CKEditor_3.x/Developers_Guide/File_Browser_%28Uploader%29/Custom_File_Browser