Se non sbaglio, non era molto complicato:
Dentro ckeditor dovrebbe starci il file config.js, che dovresti configurare. Ad esempio il mio è:
codice:
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
//config.toolbar = 'Basic';
// config.uiColor = '#AADC6E';
config.filebrowserBrowseUrl = webrootpath+'js/ckeditor/kcfinder/browse.php?type=files';
config.filebrowserImageBrowseUrl = webrootpath+'js/ckeditor/kcfinder/browse.php?type=images';
config.filebrowserFlashBrowseUrl = webrootpath+'js/ckeditor/kcfinder/browse.php?type=flash';
config.filebrowserUploadUrl = webrootpath+'js/ckeditor/kcfinder/upload.php?type=files';
config.filebrowserImageUploadUrl = webrootpath+'js/ckeditor/kcfinder/upload.php?type=images';
config.filebrowserFlashUploadUrl = webrootpath+'js/ckeditor/kcfinder/upload.php?type=flash';
};
Dove webrootpath è una variabile globale che definisco all'inizio della pagina e rappresenta il path di / (es http://localhost/miosito/)
Dopo dovresti configurare kcfinder (kcfinder/config.php) tenendo presente che
'uploadURL' 'uploadDir' devono essare path assoluti
es:
Codice PHP:
...
'uploadURL' => "http:/www.miosito.it/files/",
'uploadDir' => "/home/www/www.miosito.it/htdocs/files/",
...