There seems to be a bug with htmleditor on 4.1.1. In addition, you should not use the new to create ExtJS objects. This will cause other ExtJS problems.
Upgrading to 4.2.x will fix your problem with htmleditor.
Your code should be better formatted. You should also use the correct ExtJS methods to get ie elements:
Ext.create('Ext.form.Panel', { // should be using Ext.create(), not new title: 'HTML Editor', width: 500, bodyPadding: 10, renderTo: Ext.getBody(), items: [{ xtype: 'htmleditor', name: 'editor', enableColors: true, enableAlignments: false, enableLists: true, enableSourceEdit: false, anchor: '100%' }], dockedItems: [{ xtype: 'toolbar', items: [{ xtype: 'button', text: 'Get HTML', handler: function(btn) { // example of getting all form values console.log(btn.up('form').getForm().getValues()); // proper example of getting by component alert(btn.up('form').down('htmleditor').getValue()); } }] }] });
source share