MediaWiki安装WYSIWYG编辑器扩展FCKeditor

参见:http://wiki.planetoid.info/index.php?title=Integrate_FCKeditor_to_MediaWiki&diff=0

 

安装步骤
从开发网页下载FCKeditor extension(直接下载)。
解压缩后放置到 {MediaWiki}/extensions/FCKeditor 档案结构為
{MediaWiki}/
|- extensions/
   |- FCKeditor/
      |- FCKeditor.php
      |- ...
由于PHP 5.3环境差异,请修改{MediaWiki}/extensions/FCKeditor/FCKeditor.body.php 否则将出现错误「Detected bug in an extension! Hook FCKeditor_MediaWiki::onCustomEditor failed to return a value; should return true to continue hook processing or false to abort.」而无法编辑。
 原:
 public function onCustomEditor (&$article, &$user){

 修改后:
 public function onCustomEditor($article, $user) {

 

修改{MediaWiki}/LocalSettings.php,在页尾加入
 require_once("$IP/extensions/FCKeditor/FCKeditor.php");
 $wgUseAjax = 'true';

你可能感兴趣的:(function,fckeditor,processing,扩展,extension,hook)