怎么将FCKeditor (Java WYSIWYG HTML editor) 安装到ExpressionEngine :
安装要求
- ExpressionEngine 1.3.1
- FCKeditor 2.0 RC3 ( http://www.fckeditor.net )
Step 1:
=====
- 下载 FCKeditor (www.fckeditor.net )
- 解压缩
- 将文件夹改名为 “fckeditor” (将FCKeditor内容放在该文件夹下,注意将FCK小写).
Step 2:
=====
打开 “/fckeditor/fckconfig.js”里
* 搜索 :
代码:
FCKConfig.EnableXHTML = true ; FCKConfig.EnableSourceXHTML = true ;
代码:
// Enable XHTML support //FCKConfig.EnableXHTML = true ; //FCKConfig.EnableSourceXHTML = true ; FCKConfig.EnableXHTML = false ; FCKConfig.EnableSourceXHTML = false ;
=====
修正 fckeditor.js文件,将编辑框扩大点.
高改为400 (默认为 200).
*搜索:
代码:
this.Height = height || ‘200’ ;
代码:
this.Height = height || ‘400’ ;
=====
上传fckeditor文件夹至根目录(EE的安装目录),为了安装更方便,请不要更改该文件夹名称。
Step 5:
=====
好了,现在开始更改EE的程序了。
在/syste(如果没有改名字的话)/cp/cp.publish.php:
* 搜索:
代码:
“onclick=’setFieldName(this.name)’”, $convert_ascii);
代码:
“ondblclick=’setFieldName2(this.name)’”, “onclick=’setFieldName(this.name)’”, $convert_ascii);
代码:
// Dynamically set the textarea name
function setFieldName(which)
{
if (which != selField)
{
selField = which;
clear_state();
tagarray = new Array();
usedarray = new Array();
代码:
// FCKeditor
// Dynamically set the textarea name on a DblClick
function setFieldName2(which)
{
if (which != selField)
{
selField = which;
clear_state();
tagarray = new Array();
usedarray = new Array();
var oFCKeditor = new FCKeditor( selField ) ;
oFCKeditor.ReplaceTextarea() ;
}
}
=====
在 /system/cp/cp.display.php:
*搜索:
代码:
“<meta http-equiv=’pragma’ content=’no-cache’ />\n”;
代码:
// --- FCKeditor --- "<meta http-equiv='pragma' content='no-cache' />\n". "<script type='text/javascript' src='/fckeditor/fckeditor.js'></script> \n"; // --- end ---
===
如果你的FCKeditor不是安装在同EE相同的根目录上,就要更改路径.
还有,FCKeditor只需要以下的文件,至于多余的东西嘛,你都可以删掉:
/editor (整个目录)
fckconfig.js
fckeditor.js
fckstyles.xml
license.txt









(转)怎么将FCKeditor安装到ExpressionEngine














平板模式