View Full Version : Is there a generic event listener that will fire on any event?

28 Aug 2011, 2:08 PM
Is there a generic event listener that will fire on any event?

I am having trouble getting the HtmlEditor to fire any events and I think trying something like this would be helpful to understand which events are being fired and when:

myHTMLEditor.on('anyevent', function(e) {
console.log('an event was fired:');

29 Aug 2011, 1:34 AM
Hello bclinton,

you can use Ext.util.Observable.capture (http://docs.sencha.com/ext-js/4-0/#!/api/Ext.util.Observable-method-capture).

Ext.util.Observable.capture(myHTMLEditor, function() {

29 Aug 2011, 7:59 AM
Thank you Makana. That's what I was looking for.

(I love the new answered/unanswered feature, but I guess the mods mark them? I don't see a way for me to mark this as answered. I guess it's better that way and will end up being more accurate than relying on users to mark their threads as answered)

30 Aug 2011, 6:17 AM
I guess the mods mark them

Nope, it's down to you. I don't know how to do it as I've not asked a question yet but I'd imagine there's either a menu at the top of the thread or a button at the bottom of each post.

30 Aug 2011, 8:21 AM
I found it. You mark the post that had the best answer, not the original post.