译者:老葛
Fckeditor 为非技术人员编辑网页页面提供了极大的方便,为了使在Drupal中使用FCKeditor模块,并且能够上传文件,一种方式是使用IMCE 模块来取代FCKeditor的图像上传功能,另一种方式是配置Fckeditor。
首先是配置File system的临时文件路径,在linux下面为:/tmp,在windows下面为:c:/windows/temp。Image的文件路径为images。
然后打开Fckeditor模块下的README.txt文件,参看94行:
为了启用文件上传和图像上传功能,你需要配置两个文件:
/modules/fckeditor/fckeditor/editor/filemanager/browser/default/connectors/php/config.php
和
/modules/fckeditor/fckeditor/editor/filemanager/upload/php/config.php
两个选项,配置如下:
$Config['Enabled'] = true ;
$Config['UserFilesPath'] = '/drupal/files/images' ;
这里的drupal应该替换为你的项目名称。
或者可以将$Config['UserFilesPath'] = '/drupal/files/images' 删除,也可以。