sorry..i should not have posted this in the other forum...
my question is in regards to how i want to be able to browse an existing folder i use to store images on my server.
i already have a folder with a path of /home/site/myimages that contains subfolders and images already. is it possible to have fckeditor use that path and show the existing folders/images? i don't like how fckeditor just puts everything in the 'image' folder and doesn't allow you to see folders that already exist on the server. can someone tell me how to go about this and what files to modify:?:
Thanks very much!
my question is in regards to how i want to be able to browse an existing folder i use to store images on my server.
i already have a folder with a path of /home/site/myimages that contains subfolders and images already. is it possible to have fckeditor use that path and show the existing folders/images? i don't like how fckeditor just puts everything in the 'image' folder and doesn't allow you to see folders that already exist on the server. can someone tell me how to go about this and what files to modify:?:
Thanks very much!
Re: showing existing image folders/files
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: showing existing image folders/files
thanks!
Re: showing existing image folders/files
i see that the current nightly build will show my current files/directories however is there somewhere that you can enter the URL to the images folder as well? because this is what fckeditor is placing into the html scource and it's incorrect:
<p><input type="image" src="/home/httpd/html/vhosts/mysite/editor/imagenew/2007/100_0644.jpg" longdesc="undefined" /></p>
instead it should be:
<p><input type="image" src="http://www.mysite.com/editor/imagenew/2007/100_0644.jpg" longdesc="undefined" /></p>
$Config['UserFilesAbsolutePath'] = '/home/httpd/html/vhosts/mysite/editor/imagenew/' ;
$Config['AllowedExtensions']['Image'] = array('jpg','gif','jpeg','png') ;
$Config['DeniedExtensions']['Image'] = array() ;
$Config['FileTypesPath']['Image'] = $Config['UserFilesPath'] . '/home/httpd/html/vhosts/mysite/editor/imagenew/' ;
//$Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'image/' ;
$Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'];
$Config['QuickUploadPath']['Image'] = $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['Image']= $Config['UserFilesAbsolutePath'] ;
Re: showing existing image folders/files
In $Config['FileTypesPath']['Image'] you set absolute path to image directory.
Assuming that /home/httpd/html/vhosts/mysite/ is your document root, use something like that:
path relative to document root (url)
(or simply set it to $Config['UserFilesPath'] if you want to point it to '/editor/imagenew/', or just type there "/editor/imagenew/" )
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: showing existing image folders/files
this is how i have this working because i don't want paths in my <img src=""> i want the actual url such as <img src="http://www.mysite.com/path/to/images">
also.. /home/httpd/html/vhosts/mysite/ is the document root and /editor/imagenew/ is where i keep all of my existing images/folders.
Re: showing existing image folders/files
This config would be a bit simpler and I think it will do the same:
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: showing existing image folders/files
I have tried doing that with all the above suggestions, but still not managed to get absolute paths in the source of images.
Is there anything else that has to be changed? Could someone give me a step by step instructions for getting this to work?
Re: showing existing image folders/files
Any solutions here???
Sounds possible though....Will keep posted.
I've got exactly the same problem, which I thought would've been quite easy to do, but I tried all the above and didn't work for me either. Guess the only solution is to create some fancy regular expression replacement stuff, after fckeditor has output the code.