I have installed FCK Editor. Everything is working fine except for the image upload. I’m trying to point the upload to the site/images directory. The FCK image properties window appears but I can’t see any files. If I browse for a local file and upload, it says file is uploading but nothing happens.
The FCK filemanager config.php reads as follows:
$Config['Enabled'] = true ;
$Config['UserFilesPath'] = '/images/' ;
$Config['UserFilesAbsolutePath'] = 'http://localhost/mysite/images/' ;
My custom config fckeditorcustom.js has the following:
FCKConfig.ImageBrowserURL =
'http://localhost/mysite/fckeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php';
// Getting rid of unneccessary image upload functions
FCKConfig.ImageDlgHideLink = true;
FCKConfig.ImageUpload = false;
FCKConfig.ImageDlgHideAdvanced = true;
The frmresourceslist.html file as been modified as follows:
function OpenFile( fileUrl )
{
var urlChange = 'http://localhost/mysite/'+fileUrl.toString();
window.top.opener.SetUrl(urlChange) ;
// window.top.opener.SetUrl( fileUrl )
window.top.close() ;
window.top.opener.focus() ;
}
The extension settings in EE are as follows:
var oFCKeditor = new FCKeditor(textAreaName);
oFCKeditor.BasePath = '../fckeditor/' ;
oFCKeditor.Config["CustomConfigurationsPath"]="http://localhost/mysite/fckeditorcustom.js";
oFCKeditor.ReplaceTextarea() ;
I’m also wondering if the /images folder access settings are denying access. I’m running Uniform Server as my test server under WinXp2.
Any assistance welcome.
Thanks and cheers
Slim
Hi,
I followed most of the instructions above and FCK works fine with 2 of my sites except 1, the latter loads FCK editor but cannot upload images via FCK. Now the only difference is that EE was installed on the root of the other two sites and this one with the problem EE is installed in a subdirectory. I dont use a custom .js file for all of my sites, my config.php:
$Config['Enabled'] = true ;
$Config['UserFilesPath'] = '/pages/images/' ;
$Config['UserFilesAbsolutePath'] = '' ;
my FCk config (inside EE):
var oFCKeditor = new FCKeditor(textAreaName);
//Configuration goes here
oFCKeditor.BasePath = '/pages/fckeditor/';
oFCKeditor.ReplaceTextarea()
now the error I get when I try to upload: [This file uploader is disabled. Please check the “editor/filemanager/connectors/php/config.php” file]
which if you refer to my config.php is already enabled, just so mind boggling this one.
Try adding the following line inside your FCK config (in EE) and see if you can get file uploads to work. This should directly call that php connector…(from the wiki…the link which was just updated)
oFCKConfig.LinkBrowserURL = 'http://sitename/fckeditor/editor/filemanager/browser/default/browser.html?[b]Type=File[/b]&Connector=connectors/php/connector.php';
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.