如何解决FormPanel 折叠后 HTML 编辑器不可编辑
我使用的是 ExtJS 3.4。这是一个非常旧的版本,我希望社区可以帮助我。 我在可折叠 FormPanel 中有带有保存和取消按钮的 HTMLEditor。 保存和取消按钮具有折叠 FormPanel 的功能。
FormPanel 的第一个状态是折叠的。展开后可以看到HTMLEditor可以编辑了。
在 HTMLEditor 上编辑内容后,我单击“保存”按钮,FormPanel 折叠起来。
在此之后,我再次展开 FormPanel。我无法编辑 HTML 编辑器。
代码如下:
let formPanel = new Ext.FormPanel({
labelAlign: 'left',id: 'saveForm',title: 'Data',bodyStyle: 'padding:5px',height: 100,autoScroll: true,collapsed: true,hideCollapsetool: true,border : false,frame : true,items:[
{
fieldLabel: 'Conclusion',enableColors: true,enableAlignments: true,enableLists: true,enableSourceEdit: true,plugins: [
new Ext.ux.form.HtmlEditor.Divider(),new Ext.ux.form.HtmlEditor.Word(),new Ext.ux.form.HtmlEditor.Table(),new Ext.ux.form.HtmlEditor.HR(),new Ext.ux.form.HtmlEditor.IndentOutdent(),new Ext.ux.form.HtmlEditor.SubSuperScript(),new Ext.ux.form.HtmlEditor.RemoveFormat()
],anchor: '98%',height: 250
}
],buttons: [
{
text: BTN_SAVE,iconCls: 'icon-close',handler: function(){
formPanel.toggleCollapse();
}
},{
text: BTN_CANCEL,handler: function(){
formPanel.toggleCollapse();
}
}
]
});
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。