$oFCKeditor->Config['BaseHref'] = "http://mysite.com"
FCKConfig.BaseHref = 'http://mysite.com' ;
/*start with the standard impelmentation*/
<?php
$oFCKeditor = new FCKeditor('infoletter') ;
$oFCKeditor->BasePath = '/admin/fckeditor/' ;
$oFCKeditor->Value = $infoletter ;
$oFCKeditor->Create() ;
?>
/* then when processing the form use the following lines*/
<?
$siteURL= "mysite.com";//replace with the desired URL
$infoletter=stripslashes($_POST['infoletter']);// get the submitted FCKeditor value
$infoletter=str_replace("http://" . $siteURL, "", $infoletter);//first we eliminate anywhere where the path is already absolute (useful when updating)
$infoletter=str_replace("/userfiles", "http://" . $siteURL . "/userfiles", $infoletter);//now add the URL anywhere that starts with the userfiles directory
?>