PDA

View Full Version : HtmlEditor change event



rTankersley
26 Sep 2011, 8:19 PM
I know this is a dumb question, but I cannot get the html editor's change event to fire. I tried first in MVC architecture, when that didn't work I simply put a listener on it, and it still wouldn't run. I've worked for 45 minutes on such a simple thing. Here's the code:


xtype: 'htmleditor',
name: 'text',
id: 'textField',
anchor: '100%, 85%',
listeners: {
change: function() {
console.log('hello');
},
afterrender: function() {
console.log('hello');
}
}


The afterrender function works. Hello is displayed. However, when I type in the box, hello is not put in the console. The value changes (I've checked to make sure it actually changes) but for some reason typing in the box refuses to fire the change event.

Does anybody know what's wrong?

Thanks

skirtle
27 Sep 2011, 2:41 AM
If you take a look here:

http://docs.sencha.com/ext-js/4-0/source/HtmlEditor.html#Ext-form-field-HtmlEditor-event-change

it seems that the change event isn't supposed to be documented. Guess there's a problem with the doc generator. I can only assume that the reason it isn't documented is because it won't work.

rTankersley
27 Sep 2011, 5:06 AM
Ah, well, that would explain it then. Oh well, it's been a while since I've banged my head against a wall. Guess it keeps me tough.

Thank you!