Hi
I really like FCKeditor and I'm about to start using the latest release. Thanks to all involved in this project.
I'm having great trouble getting the image browser to work properly. I have all the fckeditor working files in a folder in my root directory called 'fck'. The directory called UserFiles is also in the root directory. Can anyone please tell me what I should alter to make the image browser see my files.
I've managed to make FCK see my css stylesheet, and work with a database but this one is messing with my brain.
I really like FCKeditor and I'm about to start using the latest release. Thanks to all involved in this project.
I'm having great trouble getting the image browser to work properly. I have all the fckeditor working files in a folder in my root directory called 'fck'. The directory called UserFiles is also in the root directory. Can anyone please tell me what I should alter to make the image browser see my files.
I've managed to make FCK see my css stylesheet, and work with a database but this one is messing with my brain.
RE: Image browser path
I am using the .asp version. Here are the files I edited to work around the /userfiles/ issue: (our desired directory under the ROOT is /images/)
1. xeditor/editor/filemanager/upload/asp/config.asp
Look for ConfigUserFilesPath. This is set to /userfiles/ I added my own logic to say if Request.QueryString("Type")="Image" then ConfigUserFilesPath="/images/"
2. xeditor/editor/filemanager/browser/default/frmresourcelist.html
Adjusted the sLink variable. Within this line (63) the /image/ or /file/ directory was automatically being added. Couldn't find WHERE it was being added so I adjusted by doing a replace on /images/image/ to /images/ I didn't bother to account for the /file/ directory as I turned off this feature for my implementation. The javascript (not the whole line) now looks like this on this line:
(fileUrl.replace( /'/g, '\\\'')).replace('/images/image/','/images/')
INSTEAD OF:
fileUrl.replace( /'/g, '\\\'')
3. xeditor/editor/filemanager/browser/default/connectors/asp/config.asp
Look for ConfigUserFilesPath. This is set to /userfiles/ I added my own logic to say if Request.QueryString("Type")="Image" then ConfigUserFilesPath="/images/"
4. xeditor/editor/filemanager/browser/default/connectors/asp/io.asp
Look for sResourceTypePath (line 43). This is set to add the resourceType to sUserFilesDirectory. Simply remove this so it now looks like:
sResourceTypePath = sUserFilesDirectory
Hope that helps!
FrankC
RE: Image browser path