微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

FormPanel 折叠后 HTML 编辑器不可编辑

如何解决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 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?