How can i call that function inside that anonymous javascript? (TinyMce example)

Posted by avastreg on Stack Overflow See other posts from Stack Overflow or by avastreg
Published on 2010-03-25T13:41:27Z Indexed on 2010/03/25 13:43 UTC
Read the original article Hit count: 313

How can i call test() inside that method? It's possible?

(function() {

    tinymce.create('tinymce.plugins.WrImagerPlugin', {

        init : function(editor, url) { 

            editor.addCommand('mceWrImagerLink', function() {
                //--> how can i refer to test() here?
            });
        },
        test: function () {alert('test');}
        }
    });

    tinymce.PluginManager.add('wr_imager', tinymce.plugins.WrImagerPlugin);
})();

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about tinymce