I want to have multiple instances of FCKEditor. I have got this to work:
$Config['Enabled'] = true ;
$Config['UserFilesPath'] = '/Karnak/' ;
$Config['UserFilesAbsolutePath'] = '/var/www/vhost/glquebec.org/Karnak/' ;
Now, can I configure this in myconfig.js? What is the syntax that I put in my PHP?
I have set:
$oFCKeditor->Config['CustomConfigurationsPath'] = '/MasonicFoundation/myconfig.js' ;
$oFCKeditor->Create() ;
But these don't work:
FCKConfig.UserFilesAbsolutePath = '/var/www/vhost/glquebec.org/MasonicFoundation/' ;
FCKConfig.UserFilesPath = '/var/www/vhost/glquebec.org/MasonicFoundation/' ;
John
$Config['Enabled'] = true ;
$Config['UserFilesPath'] = '/Karnak/' ;
$Config['UserFilesAbsolutePath'] = '/var/www/vhost/glquebec.org/Karnak/' ;
Now, can I configure this in myconfig.js? What is the syntax that I put in my PHP?
I have set:
$oFCKeditor->Config['CustomConfigurationsPath'] = '/MasonicFoundation/myconfig.js' ;
$oFCKeditor->Create() ;
But these don't work:
FCKConfig.UserFilesAbsolutePath = '/var/www/vhost/glquebec.org/MasonicFoundation/' ;
FCKConfig.UserFilesPath = '/var/www/vhost/glquebec.org/MasonicFoundation/' ;
John
RE: multiple instances of FCK
if(stristr($_SERVER["PHP_SELF"],"MasonicFoundation"))
{
$Config['UserFilesPath'] = '/MasonicFoundation/' ;
}else{
$Config['UserFilesPath'] = '/Karnak/' ;
}
if(stristr($_SERVER["PHP_SELF"],"MasonicFoundation"))
{
$Config['UserFilesAbsolutePath'] = '/var/www/vhost/glquebec.org/MasonicFoundation/';
}else{
$Config['UserFilesAbsolutePath'] = '/var/www/vhost/glquebec.org/Karnak/';
}
RE: multiple instances of FCK
if ($oFCKeditor->UserFilesPath)
{
$Config['UserFilesPath'] = $oFCKeditor->UserFilesPath;
echo $oFCKeditor->UserFilesPath."ccc";
}else{
$Config['UserFilesPath'] = '/Karnak/' ;
echo "ddd";
}
if ($oFCKeditor->ConfigUserFilesAbsolutePath)
{
$Config['UserFilesAbsolutePath'] = $oFCKeditor->ConfigUserFilesAbsolutePath;
echo $oFCKeditor->ConfigUserFilesAbsolutePath."aaa";
}else{
$Config['UserFilesAbsolutePath'] = '/var/www/vhost/glquebec.org/Karnak/';
echo "bbb";
}
include("/var/www/vhost/glquebec.org/FCKeditor/fckeditor.php") ;
$oFCKeditor->ConfigUserFilesAbsolutePath = '/var/www/vhost/glquebec.org/MasonicFoundation/' ;
$oFCKeditor->UserFilesPath = '/MasonicFoundation/' ;
$oFCKeditor->Create() ;
RE: multiple instances of FCK