I am trying to get FCKEditor working with ColdFusion. About the only thing that I am having troubles with is uploading images. When I browse to an image and click upload from the Resources Browser window, the message at the bottom of the windows says "Upload in progress, pleas wait..." but nothing else seems to happen. I don't see the folder that I specified as an Application var created either. I have tried uploading from the Upload tab on the Image Properties window, but nothing happens if I do that either. Any suggestions?
Mon, 10/03/2005 - 04:39
#1
RE: Can't upload images
First of all, you should set the following in your Application.cfm file:
<cfset application.userFilesPath = "/yourwebroot/_userfiles/">
Then to create the editor, do the following:
<cfset basePath = '/myApp/FCK/'><!--- This is the path to the directory that holds your fckeditor.cfc file --->
<cfscript>
fckEditor = createObject("component", "#basePath#fckeditor");
fckEditor.instanceName = "myEditor";
fckEditor.value = 'This is your content';
fckEditor.basePath = basePath;
fckEditor.width = 700;
fckEditor.height = 500;
fckEditor.create(); // create the editor.
</cfscript>
Uploading from the Upload tab on any popup window is only available for ASP or PHP, and not for ColdFusion, so unless your server is running ASP or PHP, that won't work.
Maybe one of the developers would be so nice to add this functionality for ColdFusion?
Didgiman
RE: Can't upload images
I assume that since you say that uploading doesn't work from the Upload tab, that the appropriate method when using ColdFusion is to click the Browse Server button from the Image Info tab, then click the Browse button from the Resources Browser window, select the image to be uploaded and then click the Upload button. Is that correct? Any other suggestions on what might be wrong?
Thanks....
RE: Can't upload images
In your fckconfig.js file, you also need to put the lines that point the image browser to the ASP connector, and uncomment the lines that point to the ColdFusion connector.
If you search the file for every occurence of 'connector.cfm', you will see that those lines are in comments, and the ones above it are pointing to the ASP connector. Make sure you uncomment all lines with 'connector.cfm' in it, and put all lines with 'connector.asp' in comments.
To disable the 'upload' tab in the image, link and flash dialog windows, you need to set:
FCKConfig.LinkUpload = false;
FCKConfig.ImageUpload = false;
FCKConfig.FlashUpload = false;
The default is true for all.
Let me know how it works out!