Extjs HtmlEditor – 编号列表和项目符号列表

Extjs HtmlEditor – 编号列表和项目符号列表,第1张

概述我尝试在 http://jsfiddle.net/WEEU3/中使用HTMLEditor 但是当我选择编号列表或子d列表进行打字时,我按下输入键盘.好像 我觉得那样 1. first2. second3. third 当我专注于第三.我按下没有编号.我觉得那样 1. first 2. secondthird 但所有的话都不会被编号 如何解决这个问题.非常感谢 看起来4.1.1上有ht 我尝试在 http://jsfiddle.net/WEEU3/中使用HTMLEditor
但是当我选择编号列表或子d列表进行打字时,我按下输入键盘.好像

我觉得那样

1. first2. second3. third

当我专注于第三.我按下没有编号.我觉得那样

1. first    2. secondthird

但所有的话都不会被编号
如何解决这个问题.非常感谢

解决方法 看起来4.1.1上有HTMLeditor的BUG.此外,您不应该使用new来创建ExtJs对象.这将导致其他ExtJs问题.

升级到4.2.x将解决HTMLeditor的问题.

您的代码应该更好地格式化.您还应该使用适当的ExtJs方法来获取项目,即:

Ext.create('Ext.form.Panel',{  // should be using Ext.create(),not new    Title: 'HTML Editor',wIDth: 500,bodypadding: 10,renderTo: Ext.getbody(),items: [{        xtype: 'HTMLeditor',name: 'editor',enablecolors: true,enableAlignments: false,enableLists: true,enableSourceEdit: false,anchor: '100%'    }],dockedItems: [{        xtype: 'toolbar',items: [{            xtype: 'button',text: 'Get HTML',handler: function(btn) {                // example of getting all form values                console.log(btn.up('form').getForm().getValues());                 // proper example of getting by component                alert(btn.up('form').down('HTMLeditor').getValue());            }        }]    }]});
总结

以上是内存溢出为你收集整理的Extjs HtmlEditor – 编号列表和项目符号列表全部内容,希望文章能够帮你解决Extjs HtmlEditor – 编号列表和项目符号列表所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1054878.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-25
下一篇 2022-05-25

发表评论

登录后才能评论

评论列表(0条)

保存