日期:2014-05-17  浏览次数:20587 次

Ext htmleditor 组件问题

点击保存后再次弹出FormPanel,光标无法移入编辑域,请教高人?
附件为效果图

// 窗体中的Form
var articleForm = new Ext.form.FormPanel( {
	frame : true,
	// height:1030,
	// layout:{type:'absolute'},
	region : 'center',
	labelAlign : 'right',
	buttonAlign : 'center',
	// autoDestroy:true,
	labelWidth : 55,
	items : [{
		xtype : 'htmleditor',
		name: 'editDocContent',
		height : 200,
		anchor : '98%'
	}],
	buttons : [ {
		xtype : 'button',
		text : '保存',
		handler : function() {
			if(articleForm.form.isValid() == true){
				articleForm.form.submit({
					url: 'document/documentCreate.action',
					success: function(form, action){
						articleFormShow.hide();
						Ext.Msg.alert("提示", action.result.msgBack);		
						articleGrid.load("document/documentSearch.action","articleList", 30, fieldsAll);
					},
					failure : function() {
						Ext.Msg.alert('错误', '系统维护中!');
					},
					waitMsg : '正在上传数据,稍后...'
				});
			}
		}
	}, {
		xtype : 'button',
		text : '重置'
	} ]
});