原创 在Drupal中配置FCKeditor中的文件及图像上传收藏

Fckeditor 为非技术人员编辑网页页面提供了极大的方便,为了使在Drupal中使用FCKeditor模块,并且能够上传文件,一种方式是使用IMCE 模块来取代FCKeditor的图像上传功能,另一种方式是配置Fckeditor

首先是配置File system的临时文件路径,在linux下面为:/tmp,在windows下面为:c:\windows\tempImage的文件路径为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' 删除,也可以。

 

发表于 @ 2007年12月28日 12:17:00|评论(loading...)

新一篇:  Drupal最好的web2.0菜单模块 Nice Menu 模块简介 | 旧一篇:  Drupal专业开发指南 第6章 Drupal 用户(1)

Csdn Blog version 3.1a
Copyright © g089h515r806