PDA

View Full Version : FullScreen HTMLEditor in ContentPanel



sierk
18 Aug 2007, 11:37 AM
Hi,

I am new to ExtJS 1.1 but like it a lot. I am trying to create a full screen editor tab but it does not size to a 100% and the width is to big so i get a scoll bar.

Can any body provide me with a working example

Sierk

sierk
19 Aug 2007, 3:20 AM
Found a solution to my problem. I don't think it is the nices way, but it works. If somebody has a better solution please let it know.

Sierk

var panel = layout.add('center',new Ext.ContentPanel(Ext.id(),
{autoCreate:true, title: 'untiled.html', closable: true,fitToFrame:true, autoScroll:true}));
var editor = new Ext.form.HtmlEditor({enableFormat:true});
editor.render(panel.el);
editor.setSize(panel.el.getWidth(),panel.el.getHeight());
editor.setValue('');
panel.on('resize',function (self,w,h) {editor.setSize(w,h);});