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
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