Snape
4 Aug 2007, 1:59 PM
It seems that HtmlArea looses toolbar when rendered inside certain markup. This happens only in MSIE 6/7 (FireFox is not affected).
I have the following layout:
<table>
<tr><td colspan="2">
Post reply
</td></tr>
<tr><td>
Abrakadabra
</td><td>
<div id="msg-form">
</div>
</td></tr>
</table>
I create a form:
Ext.onReady(function() {
Ext.QuickTips.init();
Ext.form.Field.prototype.msgTarget = 'side';
myform = new Ext.form.Form({
labelAlign: 'top',
buttonAlign: 'left',
method: 'post',
url: 'ExtStart.php',
errorReader: new Ext.form.XmlErrorReader()
});
myform.add(
new Ext.form.HtmlEditor({
id: 'messageText',
fieldLabel: getLabel('messageLabel'),
height: 75,
enableAlignments: false,
enableColors: false,
enableFont: false,
enableFontSize: false,
enableSourceEdit: false
}),
new Ext.form.HiddenField({
id: 'parentId'
})
);
myform.addButton({
text: getLabel('submitLabel'),
handler: function() {
myform.submit({
url: 'ExtStart.php',
waitMsg: getLabel('postingLabel')
})
}
});
myform.addButton({
text: getLabel('resetLabel'),
handler: function() {
myform.reset()
}
});
myform.setValues([
{ id : 'parentId', value : 123 }
]);
myform.render('msg-form');
});
The only thing that helps, is moving form out of table. If I make tabeless layout with floating DIVs, it does not work either. Setting width to HtmlEditor does not help.
I am fighting with it for several hours already without success and I am out of ideas.
I have the following layout:
<table>
<tr><td colspan="2">
Post reply
</td></tr>
<tr><td>
Abrakadabra
</td><td>
<div id="msg-form">
</div>
</td></tr>
</table>
I create a form:
Ext.onReady(function() {
Ext.QuickTips.init();
Ext.form.Field.prototype.msgTarget = 'side';
myform = new Ext.form.Form({
labelAlign: 'top',
buttonAlign: 'left',
method: 'post',
url: 'ExtStart.php',
errorReader: new Ext.form.XmlErrorReader()
});
myform.add(
new Ext.form.HtmlEditor({
id: 'messageText',
fieldLabel: getLabel('messageLabel'),
height: 75,
enableAlignments: false,
enableColors: false,
enableFont: false,
enableFontSize: false,
enableSourceEdit: false
}),
new Ext.form.HiddenField({
id: 'parentId'
})
);
myform.addButton({
text: getLabel('submitLabel'),
handler: function() {
myform.submit({
url: 'ExtStart.php',
waitMsg: getLabel('postingLabel')
})
}
});
myform.addButton({
text: getLabel('resetLabel'),
handler: function() {
myform.reset()
}
});
myform.setValues([
{ id : 'parentId', value : 123 }
]);
myform.render('msg-form');
});
The only thing that helps, is moving form out of table. If I make tabeless layout with floating DIVs, it does not work either. Setting width to HtmlEditor does not help.
I am fighting with it for several hours already without success and I am out of ideas.