Extjs4 Fckeditor怎么应用?

本来用的是htmleditor的但是没有图片上传等功能,所以想用fckdeitor,我下了fckeditor,但不知道要怎么应用?求大神指教

建议使用kindeditor

[img]
{
width: 880,
height: 395,
margins: {
left: 10
},
hideLabel: true,
//id: 'content1',
name: 'content',
xtype: 'textarea'
}],
listeners: {
scope: this,
'render': function() {
var me = this;
setTimeout(function() {
//动态加载kindeditor富文本编辑器
var plugins = '/plugins/editor/kindeditor/kindeditor-min.js';
EasyJF.loadJs(plugins, false, function() {
KindEditor.basePath = '/plugins/editor/kindeditor/';
var id = me.fp.form.findField('content').id;
me.editor = KindEditor.create('#' + id, {
//所有的上传文件POST地址
uploadJson: '/fileUpload.ejf',
//指定浏览远程图片的URL处理地址
fileManagerJson: '/fileUpload.ejf?cmd=showByKindeditor',
//true时显示浏览远程服务器按钮
//allowFileManager: true,
afterBlur: function() {
this.sync();//编辑器失去焦点时同步KindEditor的值到textarea文本框
}
});
}, null, EasyJF.ajaxCache);
}, 1);
}
}
[/img]

htmleditor可以自己加上图片上传功能。如果仅仅只需要图片上传功能可以不用换编辑器的。

fck针对extjs由一个插件!网上有下载,下载插件后,跟一般配置使用一样的! 很方便的!