How can I do in Ext.1.1.1 what I do in ext2.1 as:
Code:
TextAreaEditorPopup = function(config) {
config = config || {};
Ext.apply(this, config);
this.init = function(textArea) {
this.editor = textArea;
this.editor.on('focus', onClickPopupEditor, this);
};
function onClickPopupEditor() {
strhtmlpop='';
winhtmlpop=new Ext.Window({scope:this,border:false, closable:true, modal:true, width:900, height:500,items:[
new Ext.form.FormPanel({layout:'fit',buttonAlign:'right',id:'frmpop', frame:false, border:false,
items:
[
new Ext.form.TextArea({border:false, width:780, height:420, autoScroll:true, fieldLabel: '',id: 'popedit',allowBlank: true, labelSeparator: ''}),
new Ext.Button({text:'Guardar',handler:function() {this.editor.setValue(strhtmlpop);strhtmlpop='';winhtmlpop.close();},scope:this,listeners:{click: function(b,e) {strhtmlpop=b.ownerCt.getComponent('popedit').getRawValue();}}})
]
})]});
winhtmlpop.show();
winhtmlpop.getComponent('frmpop').getComponent('popedit').setValue(this.editor.getValue());
winhtmlpop.getComponent('frmpop').getComponent('popedit').show();
}
}
[code]
...
{
xtype : 'textfield',
fieldLabel : 'Descripci