View Full Version : [CLOSED] HTML editor - html editor lose value after move on Form Panel

16 Sep 2013, 1:27 AM
HTML editor - html editor lose value after move on Form Panel


Ext version tested:

Ext 4.2.1 rev 883

Browser versions tested against:

Chrome 29
FF 23.0.1
Safari 5.1.7


Create HTML editor on Form Panel.
After HTML editor is rendered and if try to move HTML editor to other position on Form Panel, HTML editor lose inside value.

Steps to reproduce the problem:

See example

The result that was expected:

HTML editor should have value after move on Form Panel

The result that occurs instead:

HTML editor lose value and there is not option to set any new value.

Test Case:


Ext.onReady(function() {

var formPanel = Ext.create('Ext.form.Panel', {
frame: true,
title: 'Form Fields',
width: 550,
bodyPadding: 5,

fieldDefaults: {
labelAlign: 'left',
labelWidth: 90,
anchor: '100%'

items: [{
xtype: 'textfield',
name: 'textfield1',
fieldLabel: 'Text field',
value: 'Text field value'
fieldLabel: 'Html Text Item',
xtype: 'htmleditor',
name: 'Value',
buttons: [{
text: 'Move up item',
handler: function () {



Gary Schlosberg
16 Sep 2013, 7:27 AM
Thanks for the report! I have opened a bug in our bug tracker.

10 Apr 2014, 4:36 AM
When can I expect an answer for this bug??

11 Dec 2014, 3:54 AM
I had the same problem, today. What I did, was just calling initEditor after the move was done: http://docs.sencha.com/extjs/5.0.1/#!/api/Ext.form.field.HtmlEditor-method-initEditor. I don't know if it's save to do this, but I had a quick look at the source code and didn't see any objects that are being created redundantly. Actually there is a cleanup before the initialization happens where all listeners are being removed.

You have to wait until the rendering process is done.

29 Jun 2017, 9:36 AM
I'm not sure why this bug was closed, but it's still an issue in Ext JS 6.5.x.