I am using CKFinder with a resource called "Gallery" instead of "Images". I have created the resource in file config.asp (I could basically say that my "Images" resource was simply renamed "Gallery"). My CKFinder works perfectly and my images are uploaded correctly in my "Gallery" folder.
However, when I integrate CKFinder into my FCKeditor, when I click on the image icon and then, in the Image Info tab, I click on the Browse Server button, the CKFinder that appears is empty. There is no directory tree and no file.
In the file fckconfig.js, I put the following value:
If I right click on the empty CKFinder that is generated and that I look at the Properties, I can see that the resource type expected by the CKFinder is still "Images" and not "Gallery". I can see that because the address of my CKFinder ends as such:
ckinder.html?rlf=0&type=Images
Is there some other place in some file where I have to replace Images by Gallery?
Do I absolutely have to use the word "Images" for the name of my resource for CKFinder-FCKeditor integration?
Notes:
- I have no problem with a link. In that case the CKFinder shows my Gallery folder correctly and a link to the files is created correctly in my FCKeditor.
- I am using CKFinder 2.x for ASP (in an ASP.NET 1.1 environment) with the last version of FCKeditor.
However, when I integrate CKFinder into my FCKeditor, when I click on the image icon and then, in the Image Info tab, I click on the Browse Server button, the CKFinder that appears is empty. There is no directory tree and no file.
In the file fckconfig.js, I put the following value:
FCKConfig.ImageBrowserURL = '/ckfinder/ckfinder.html?type=Gallery' ; FCKConfig.ImageUploadURL = '/ckfinder/core/connector/asp/connector.asp command=QuickUpload&type=Gallery' ;
If I right click on the empty CKFinder that is generated and that I look at the Properties, I can see that the resource type expected by the CKFinder is still "Images" and not "Gallery". I can see that because the address of my CKFinder ends as such:
ckinder.html?rlf=0&type=Images
Is there some other place in some file where I have to replace Images by Gallery?
Do I absolutely have to use the word "Images" for the name of my resource for CKFinder-FCKeditor integration?
Notes:
- I have no problem with a link. In that case the CKFinder shows my Gallery folder correctly and a link to the files is created correctly in my FCKeditor.
- I am using CKFinder 2.x for ASP (in an ASP.NET 1.1 environment) with the last version of FCKeditor.
Re: CKFinder integration with FCKEditor - Image problem
Remember also that there are some helper functions like CKFinder.setupFCKeditor that you can use to configure FCKeditor a little more easily instead of hardcoding everything in your FCKeditor config file.
Re: CKFinder integration with FCKEditor - Image problem
Thanks for the reply.
1) I have tried to clean the cache, closed the browser and restarted it. Then I accessed my application and I still have the same problem.
2) I have tried setting the values in the call of CKFinder.setupFCKeditor
I still have the same problem.
3) I have tried setting also the following
I still have the same problem.
4) I have also tried the sample ckfinder\_samples\fckeditor.html
The problem is still the same.
When I debug and I do a Quickwatch on oFCKeditor, I can see that in everything solution that I have attempted the ressource type is still "Images" instead of "Gallery". I get the following values:
oFCKeditor.Config.ImageBrowserURL="/projectroot/ckfinder/ckfinder.html?start=Gallery%3A%2F%3A0&rlf=0;type=Images"
oFCKeditor.Config.ImageUploadURL="/projectroot/ckfinder/core/connector/asp/connector.asp?command=QuickUpload&type=Images"
Please help.
Note: It still works well for links, but not for images.
Re: CKFinder integration with FCKEditor - Image problem
In 2 you are trying to pass FCKeditor configuration options, but that object is the configuration for CKFinder.
In 3 you are first setting a property on the FCKeditor object (not its configuration) and then calling the setupFCKeditor that would overwrite anyway your settings even if you did it correctly
This one should work (tested with the FCKeditor sample):
Re: CKFinder integration with FCKEditor - Image problem
It worked! A million thanks!