1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
Ext.onReady(function (){
Ext.ns('Ext.ux.form.HtmlEditor');
var w = new Ext.Window({
width: 860,
layout: 'fit',
items: [
{
fieldLabel: 'Description',
name: 'description',
value: 'bwah bwah',
anchor: '100%',
id:'monHtmlEditor',
xtype: "htmleditor",
height: 400,
listeners:{
afterrender:function(){
this.getToolbar().addItem(
[
{
xtype: 'form',
id: 'monForm',
url: 'php/webServiceProjet.php?upload=1',
border: false,
fileUpload: true,
items:[
{
xtype: 'fileuploadfield',
id: 'monFileUpload',
name: 'monFileUpload',
buttonOnly: true,
hideLabel: true,
buttonText: '',
tooltip: 'monFileUpload',
buttonCfg: {
iconCls: 'bo'
}
/*
xtype: 'button',
iconCls: 'bo', //your iconCls here
handler: function(){
alert('eee');
//this.cmp.insertAtCursor('<hr>');
},
scope: this,
tooltip: 'horizontal ruler',
overflowText: 'horizontal ruler'
*/
}
]
}
]
)
}
}
}
]
});
w.show();
}); |
Partager