PDA

View Full Version : Bug: htmlEditor de- increases textinput area on every toggle of source view



Wolfgang
4 Aug 2007, 9:21 AM
Hello,

using EXT 1.1R1, when using an htmleditor in a form or standalone, it decreases(IE) or increases(FF) the textinput field everytime you toggle source/html view. (Need to toggle about 10+ times to see it).
I was not able to reproduce this in the Ext examples though. Maybe it has something to do with container, forms or content.

Here the code i used:


frmBuchung.container({width: 510},
new Ext.form.HtmlEditor({
id: 'kommentar',
fieldLabel: 'Kommentar',
width: 510,
height: 155
})
);


P.S: I found a demo of a custom htmlEditor here in the forum, so i use this as an example.
Although it is a custom implementation, it reflects the behavoir i noticed using the Ext htmlEditor.
http://ux.designism.nl/ux/noneditable/

Regards

Wolfgang

tryanDLS
4 Aug 2007, 4:11 PM
Why are you reporting this as a bug when the Ext example works? If your code doesn't work, you need to determine what you're doing differently, especially when you're using someone else's code. Put your htmlEditor code in the dynamic form example. Does it work? If so, you need to look at what else your code is doing. Posting 5 lines of a standard object creation doesn't give anybody a basis to help.

Wolfgang
5 Aug 2007, 1:30 AM
Here is a complete testcase that reproduces the issue.


// createTestDlgBuchung
function createTestDlg(htmlId) {
var dialog;
var frmBuchung;
dialog = Ext.get(htmlId);
if (dialog) {
return dialog;
}


// form creation
frmBuchung = new Ext.form.Form({
labelAlign: 'top',
url: 'respUpdateBuchung',
method: 'POST'
});

frmBuchung.container({width: 510},
new Ext.form.HtmlEditor({
id: 'kommentar',
fieldLabel: 'Kommentar',
width: 510,
height: 155
})
);

frmBuchung.addButton('Cancel',
function () {
dialog.hide();
}
);

// Dialog creation
dialog = new Ext.BasicDialog(htmlId, {
title: 'Buchung',
width: 535,
height: 410,
shadow: true,
proxyDrag: true,
autoCreate: true,
resizable: false
});

// keep frmobject as part of dialog
dialog.frmBuchung = frmBuchung;
frmBuchung.render(dialog.body);

return dialog;
} // createTestDlg

// use the dialog:
// var mydlg = createTestDlg('my-dlg');
// mydlg.show();

As you can see, it is just a simple dynamic form with only the htmlEditor widget.



Why are you reporting this as a bug when the Ext example works?

I did this, because the issue occurs when embedding the htmlEditor widget in a form that is part of a basicDialog.
The ext example does not do this. So i hoped to help with this bit of information to narrow down the issue.

Regards

Wolfgang

Wolfgang
6 Aug 2007, 6:36 AM
Well i can reproduce this issue with the code provided above also in Ext 1.1.

If the team does not treat this as a bug, should i re-open this as a help request in the help forum?

Regards

Wolfgang

jack.slocum
6 Aug 2007, 7:29 AM
I have added it to the list. I will let you know as soon as it's confirmed/closed. Thanks.