Page 1 of 1

Changing default image directories in FCKeditorX

Posted: Tue Dec 26, 2006 10:06 pm
by cnymike
I'm wondering if it is possible to change the default behavior of the directory that is accessed when the "Insert/Edit Image" tool is accessed in the FCKeditor window. Furthermore I am interested in also changing the default directory that the ""Link" tab in the "Insert/Edit Image" tool accesses when it is selected.

Any help would be appreciated.

Re: Changing default image directories in FCKeditorX

Posted: Wed Dec 27, 2006 6:10 am
by Elijah Lofgren
If you're using FCKeditor 1.0.2 and you're wanting to make it use images from uploads/images then try installing FCKeditorX 1.0.3: http://dev.cmsmadesimple.org/frs/?group ... ase_id=714

If you'd like some other dir, open config.php and change the following 2 settings to the dir that you want.

Code: Select all

#Where are uploaded files put?  This defaults to uploads.
$config['uploads_path'] = '/opt/lampp/htdocs/cmsmadesimple/uploads';

#Where is the url to this uploads directory?
$config['uploads_url'] = 'http://cmsmadesimple.localhost/uploads';

For fixing the Link tab, I just change something in SVN: http://viewsvn.cmsmadesimple.org/viewsv ... x&view=rev
You can download this file: http://viewsvn.cmsmadesimple.org/viewsv ... iew=markup
and replace your current: modules/FCKeditor/editor/filemanager/browser/default/connectors/php/connector.php with it so that the directory browsed to will be "uploads" instead of "uploads/File".

Hope this helps,

Elijah