在PHP的FCKeditor编辑器的安装

一、PHP调用FCKeditor方法。
二、JS调用功能的方法。
复制代码代码如下所示:
< PHP
require_once(path_pre。FCKeditor。php); / /含fckeditor,
ofckeditor美元=新的FCKeditor('content'); / /创建一个FCKeditor对象,窗体的名称是内容
ofckeditor美元->修改表情= .. / / / FCKeditor编辑器的目录;
ofckeditor美元->工具条集= yiyunnet; / /默认编辑器工具栏基本(基本工具)默认(工具)软(子列可以插入图片和视频(Renpeng)视频可以上传图片到两列)全(三条)
ofckeditor美元->高度= 100 %; / /高度
ofckeditor美元->宽度= 100 %; / /宽度
ofckeditor美元->价值= ; / /初始值,也可以设置以下部分(=部分),不:
ofckeditor美元->配置{ 'skinpath} =.. /编辑/皮肤/银/ / /设置;共有三种皮肤编辑器默认
($ ofckeditor ->创建); / /到位上线显示输出变量的值myeditor美元编辑
>


方法1 FCKeditor JS调用
复制代码代码如下所示:


无功ofckeditor =新的FCKeditor(内容);
ofckeditor.basepath =FCKeditor ;
ofckeditor.toolbarset =基本;
ofckeditor宽度=100%;
ofckeditor。高度=400;
ofckeditor价值=;
ofckeditor创建();


方法二FCKeditor JS调用
复制代码代码如下所示:


功能showfck(){
无功ofckeditor =新的FCKeditor('content');
ofckeditor.basepath =FCKeditor ;
ofckeditor.toolbarset =基本;
ofckeditor宽度=100%;
ofckeditor。高度=200;
ofckeditor价值=;
OFCKeditor.ReplaceTextarea();
document.getelementbyidx(btnshow)。禁用=true;
document.getelementbyidx(btnshow)。Style.display = 'none';
}