PDA

View Full Version : htmleditor don't show in formPanel with deferredRender:false



chalda
13 Aug 2009, 5:37 AM
When I use htmlarea in formpanel with deferredRender:false htmlareas don't works...
See attached images.



Ext.onReady(function(){
var form = new Ext.form.FormPanel({
layoutOnTabChange:true,
items: [{
xtype:'tabpanel',
plain:true,
activeTab:0,
deferredRender:false,
hideMode:'offsets',
autoHeight:true,
defaults:{bodyStyle:'padding:10px'},
items:[
{
"title":"First Tab",
"layout":"form",
"items":[{
"fieldLabel":"First Textarea",
"value":"Text simple",
"xtype":"htmleditor",
"name":"text1"
}]
},
{
"title":"Second Tab",
"layout":"form",
"items":[{
"fieldLabel":"Second Textarea",
"value":"Text simple",
"xtype":"htmleditor",
"name":"text2"
}]
}
]


}]
});




var win = new Ext.Window({
title: 'New Window',
layout:'form',
bodyStyle:'padding:5px',
closeAction:'close',
modal:true,
width: 800,
y:20,
autoHeight:true,
items: form
});
win.show(this);

})
[/code]