首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > CSS >

ext htmleditor 没法输入

2012-10-29 
ext htmleditor 无法输入使用Extjs,在开发过程中发现,在使用HtmlEditor控件提交数据后,IE出现丢失光标,在

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
});
}
},

热点排行