Ext.ns('Ext.ux.form.HtmlEditor');Ext.ux.form.HtmlEditor.HR =Ext.extend(Ext.util.Observable,{
    init:function(cmp){this.cmp = cmp;this.cmp.on('render',this.onRender,this);},
    onRender:function(){this.cmp.getToolbar().addButton([{
            iconCls:'x-edit-custom',//your iconCls here
            handler:function(){this.cmp.insertAtCursor('<hr>');},
            scope:this,
            tooltip:'horizontal ruler',
            overflowText:'horizontal ruler'}]);}});var w =newExt.Window({
    width:550,
    layout:'fit',
    items:[{
        xtype:'htmleditor',
        plugins:[newExt.ux.form.HtmlEditor.HR()]}]});
w.show();

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
  • 2021-06-24
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-11
  • 2021-11-18
  • 2022-12-23
相关资源
相似解决方案