PDA

View Full Version : HtmlEditor



xmatt1
22 Aug 2007, 9:53 AM
Hey guys!

how to put a HtmlEditor into a BasicDialog????

i cant do it.. some one can help me?

look i've tried




var myForm = new Ext.form.Form({
labelAlign: 'right',
url:'myurl.php'
});

var myForm_nome = new Ext.form.TextField({
fieldLabel: 'Nome',
name: 'nome',
width: 200,
allowBlank: false
});

var myForm_email = new Ext.form.TextField({
fieldLabel: 'E-mail',
vtype:'email',
name: 'email',
width: 200,
allowBlank: false
});

var myForm_msg = new Ext.form.HtmlEditor({
fieldLabel: 'Mensagem',
id:'msg'
});

myForm.add(
myForm_nome,
myForm_email,
myForm_msg
);

myForm.render('myForm');


and my HtmlEditor appear the default value false and dont works!

xmatt1
23 Aug 2007, 11:10 AM
Hello.. i resolved the problem.. it was very simple

the HtmlEditor was return false cause the myForm.render was before the ext mount the dialog so the myForm.render have to be after the dialog.show

=)

;)


now it's all perfect...

hey somebody know about ext2???