Hi! I'm using CKFinder with CKEditor:
While setting the startup path ('start') works fine with filebrowserImageBrowseUrl, it doesn't seem to work with filebrowserImageUploadUrl. The images get uploaded to "Images/", not to "Images/nyhetsbilder/".
Is there a way to do so? I would like to specify different paths on different pages on my site, so it probably has to be done runtime, not in a config file.
var editor = CKEDITOR.replace( "editor_body", { customConfig : "/libs/ckeditor/config_18bergen.js", toolbar: "VerySimpleBergenVS", filebrowserImageBrowseUrl : "/libs/ckfinder/ckfinder.html?Type=Images&start=Images:/nyhetsbilder", filebrowserImageUploadUrl : "/libs/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images&start=Images:/nyhetsbilder" });
While setting the startup path ('start') works fine with filebrowserImageBrowseUrl, it doesn't seem to work with filebrowserImageUploadUrl. The images get uploaded to "Images/", not to "Images/nyhetsbilder/".
Is there a way to do so? I would like to specify different paths on different pages on my site, so it probably has to be done runtime, not in a config file.
Re: How to specify quick upload path on runtime
To set a different folder for the QuickUpload command, use "currentFolder" attribute:
Note: the specified folder must exist.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: How to specify quick upload path on runtime
Thanks, that's perfect
Re: How to specify quick upload path on runtime
Here's what I have:
Re: How to specify quick upload path on runtime
Similar approach for files and flash will of course work.
Re: How to specify quick upload path on runtime
The images upload to the correct folder '/userfiles/images/' but when the upload is complete and it goes back to the "image Info" tab, the URL is just the file name and not the directories as well. This means the image preview is broken and the source code is wrong.
If I just use the Browse Server button to select files everything works fine.
Is there a config setting I need to change to get the quick upload url to show up correctly once the file has uploaded?
Re: How to specify quick upload path on runtime
I have directory structure
/$id/images/
/$id/files/
/$id/flash/
if some user edit item $id, he will see only files from this directory. How have I setup ckeditor + ckfinder?
Re: How to specify quick upload path on runtime
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
CKEDITOR 4.x
How can this be done dynamically in the new ckeditor 4? I've tried several things, but no luck. The above replace method seems to break ck4. My latest attempt is
Figured it out
Above worked once I wrapped it w/configLoaded