I have the following code:

(function() {
    tinymce.create('tinymce.plugins.usabilityPlugin', {
        init : function(ed, url) {
            var t = this;
            t.editor = ed;

        click : function(ed) {
            ed.onClick.add(function(ed, e) {


    tinymce.PluginManager.add('usability', tinymce.plugins.usabilityPlugin);
I'm basically trying to understand why the alert() isn't working for the intended onClick I'm trying to implement here... There's no errors in Firefox from what I can tell (using Firebug, too, so I've tried the console.log approach and it doesn't tell me anything either). I think I'm probably misunderstanding how these classes are created in TinyMCE nomenclature (i.e. - are "init" and "click", in essence, methods?), so any insight is appreciated.