I'm creating an email newsletter manager and need the URLs of the images inserted into the editor to have an absolute file path. I tried:
$oFCKeditor->UserFilesPath = 'http://www.mydomain.com/userfiles/';
but that didn't seem to do it. I only want this to occur on this specific editor. I have another editor elsewhere on the site that manages the content of their site, so it needs to be an item i config when placing it on this page.
Any ideas?
Thu, 08/07/2008 - 01:31
#1
Re: Insert Absolute URLs when inserting images.
Ok. After researching, it explains that I should modify the config file for the file browser, however, I only want it for this instance of the editor. I tried:
$oFCKeditor->Config['UserFilesPath'] = 'http://www.mydomain.com/userfiles/';
$oFCKeditor->Config['UserFilesAbsolutePath'] = $_SERVER['DOCUMENT_ROOT'] . '/userfiles/';
But that doesn't seem to be doing anything. Any tips?