Mediawiki之FCKEditor安装
$wgFCKUseEditor = true;
$wgFCKEditorExtDir = "extensions/FCKeditor/";
$wgFCKEditorDir??? = "extensions/FCKeditor/fckeditor/";
$wgFCKEditorToolbarSet?? = "Wiki";
$wgFCKEditorAllow_a_tags = true;
$wgFCKEditorAllow_img_tags = true;
$wgFCKEditorHeight?????? = "600";
二,配置fckeditor_config.js
在extensions/FCKeditor/下面找到fckeditor_config.js
一般刚安装完会报找不到某些控件
// Setup the editor toolbar.
FCKConfig.ToolbarSets['Wiki'] = [
?? ?['Source'],
?? ?['Cut','Copy','Paste',/*'PasteText','PasteWord',*/'-','Print'],
?? ?['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
?? ?['SpecialChar','Table','Image','Rule'],
?? ?//['MW_Template','MW_Special','MW_Ref','MW_References','MW_Source','MW_Math','MW_Signature','MW_Category'],
?? ?'/',
?? ?['FontFormat'],
?? ?['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
?? ?['OrderedList','UnorderedList','-','Blockquote'],
//?? ?['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
?? ?['Link','Unlink','Anchor'],
//?? ?['TextColor','BGColor'],
?? ?['FitWindow','-','About']
] ;
哪个木有,注释掉相应的就好了
三,配置fck图片上传路径
找到extensions/FCKEditor/fckeditor/filemanager/connectors/php/config.php
设置
$Config['Enabled'] = true ;
$imgUrl = "http://url";?? ?指定图片URL?? ?
$Config['UserFilesPath'] = $imgUrl. 'pic/' ;
$Config['UserFilesAbsolutePath'] = '/usr/local/wwwroot/pic/' ;?? ?图片绝队路径
在pic下建立相应的资源类型目录
mkdir 0777 pic/file
mkdir 0777 pic/image
mkdir 0777 pic/flash
mkdir 0777 pic/meida
四,清理下缓存,去尝试下,是不是发现都可以用了!
?