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

ext htmleditor 无法输入

使用Extjs,在开发过程中发现,在使用HtmlEditor控件提交数据后,IE出现丢失光标,在无光标的HtmlEditor中按回车,光标出现,初步判断和HtmlEditor有关,我的解决办法是:Ext.getCmp("comment_dsc").focus(true);

我的代码如下:
if (this.fp.form.isValid()) {
this.fp.form.submit( {
waitMsg :'正在保存...',
url :String.format(this.baseUrl, (id ? "update" : "create")),
// method :'POST',
success : function(form, action) {
? ? Ext.Msg.alert("提示", action.result.message);
? ? ? ?Ext.getCmp("comment_dsc").focus(true);
this.closeWin();
this.store.reload();
},
failure: function(form, action) {
Ext.Msg.alert('提示',action.result.message);
? ? ? ?Ext.getCmp("comment_dsc").focus(true);
},

scope :this
});
}
},