Ext.onReady(function(){
Ext.QuickTips.init();
Ext.create("Ext.form.Panel",{
title:'本地htmleditor实例',
renderTo:'formDemo',
bodyPadding:'5 5 5 5',
height:400,
width:600,
frame:true,
items:[{
xtype:'htmleditor',
name:'HTML',
height:320,
width:580,
fontFamilies :['宋体','黑体','楷体'],
defaultLinkValue :'http://www.uspcat.com'
}],
buttons:[{
text:'提交',
handler:function(){
this.up("form").getForm().submit({
params:{
info:'age是隐藏字段'
}
});
}
}]
});
})
Extjs4中的Form之文本编辑器htmleditor的使用
最新推荐文章于 2016-04-21 20:59:21 发布