gestion des images dans fckeditor

This commit is contained in:
Regis Houssin 2006-07-23 21:15:47 +00:00
parent 720698a1b8
commit 814da4e72c
2 changed files with 8 additions and 3 deletions

View File

@ -21,16 +21,16 @@
global $Config ;
// SECURITY: You must explicitelly enable this "uploader".
$Config['Enabled'] = false ;
$Config['Enabled'] = true ;
// Path to uploaded files relative to the document root.
$Config['UserFilesPath'] = '/UserFiles/' ;
$Config['UserFilesPath'] = '/images/' ;
// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Usefull if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\UserFiles\\' or '/root/mysite/UserFiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
$Config['UserFilesAbsolutePath'] = '' ;
$Config['UserFilesAbsolutePath'] = $conf->fckeditor->dir_images ;
// Due to security issues with Apache modules, it is reccomended to leave the
// following setting enabled.

View File

@ -83,6 +83,11 @@ class modFckeditor extends DolibarrModules
*/
function init()
{
global $conf;
// Dir
$this->dirs[0] = $conf->fckeditor->dir_images;
$sql = array();
return $this->_init($sql);