ExtJs Ext.form.field.TextArea+Ckeditor 扩展富文本编辑器

Ext.define("MyApp.base.BaseTextArea", {
extend: "Ext.form.field.TextArea",
xtype: "BaseTextArea", editor: null, initComponent: function() {
this.callParent();
this.on("afterrender", this.handlerAfterrender);
}, handlerAfterrender: function(txa, eOpts) {
var editor = CKEDITOR.replace(txa.getInputId());
CKFinder.setupCKEditor(editor,'/ckeditor/');
txa.editor = editor;
}, getSubmitValue: function() {
this.editor.updateElement();
return this.callParent();
}
});
上一篇:ExtJs文件上传(Ext.ux.form.FileUploadField)


下一篇:ux.form.field.Password 密码与非密码状态切换