一个苹果,n种思想~

Today start

为 Drupal 安装 Fckeditor 模块!

点击这里给我发消息
<body background="http://www.yuguanyin.cn/bbs/upload/48-1-1.jpg" bgproperties="fixed"></body>
Fckeditor是一款相当不错的在线编辑器,最近我写程序一直都是在用她,今天摆弄Drupal,在官方网站上看到Drupal居然有Fckeditor的模块,高兴坏了,怪不得Drupal被公认为爆强的Blog程序,二话没说下!给自己的Drupal装上,因为默认没有在线编辑器,这下可以爽了!

先下载必须的软件包:Drupal的Fckeditor模块,和 Fckeditor。

-. 安装Drupal的Fckeditor模块和Fckeditor

1. Copy fckeditor folder to modules/.
2. Download FCKeditor 2.0 from http://www.fckeditor.net and copy the
distribution files to modules/fckeditor/lib.

二. 配置


1,按照fckeditor fro drupal文档所讲,修改了文件fckconfig.js,将LinkBrowserURL和ImageBrowserURL分别改成下面这样:

FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=/drupal/modules/fckeditor/ssip/connector.php"

FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=/drupal/modules/fckeditor/ssip/connector.php"

并且修改文件properties.inc,将context_path清空,就像这样:

$properties['context_path'] = '/drupal';

这里的"/drupal"是我服务器上Drupal的安装目录,请根据自己的实际路径情况设置。


2,根据properties.inc,发现还需要建立目录/images、/flash、/media,于是在站点主目录下建立了3个子目录,并且赋予apache运行用户可写;且修改变量path_separator为"/",因为我是装在Liunx上,就像这样:

// The file system path separator (\) windows, (/) unix
$properties['path_separator'] = '/';

我的文件放在/drupal/UserFiles下所以3个子目录建在下它下面,更改设置为:

$properties['Image'] = '/UserFiles/images';
$properties['Flash'] = '/UserFiles/flash';
$properties['Media'] = '/UserFiles/media';

OK,测试成功!:-)

改进你的商务网站的可用性(Usability)-从亚马逊想到的打不开chm文件怎么办

Write a comment

New comments have been disabled for this post.

June 2012
S M T W T F S
May 2012July 2012
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30