tinymce.PluginManager.add("emoticons", function(a, b) { function c() { var a; return a = '', tinymce.each(d, function(c) { a += "", tinymce.each(c, function(c) { var d = b + "/img/smiley-" + c + ".gif"; a += '' }), a += "" }), a += "
" } var d = [ ["cool", "cry", "embarassed", "foot-in-mouth", "frown", "innocent", "kiss", "laughing", "money-mouth", "sealed", "smile", "surprised"], ["cool", "cry", "embarassed", "foot-in-mouth", "frown", "innocent", "kiss", "laughing", "money-mouth", "sealed", "smile", "surprised"], ["cool", "cry", "embarassed", "foot-in-mouth", "frown", "innocent", "kiss", "laughing", "money-mouth", "sealed", "smile", "surprised"], ["cool", "cry", "embarassed", "foot-in-mouth", "frown", "innocent", "kiss", "laughing", "money-mouth", "sealed", "smile", "surprised"], ["cool", "cry", "embarassed", "foot-in-mouth", "frown", "innocent", "kiss", "laughing", "money-mouth", "sealed", "smile", "surprised"], ["cool", "cry", "embarassed", "foot-in-mouth", "frown", "innocent", "kiss", "laughing", "money-mouth", "sealed", "smile", "surprised"], ["cool", "cry", "embarassed", "foot-in-mouth", "frown", "innocent", "kiss", "laughing", "money-mouth", "sealed", "smile", "surprised"], ["cool", "cry", "embarassed", "foot-in-mouth", "frown", "innocent", "kiss", "laughing", "money-mouth", "sealed", "smile", "surprised"], ["cool", "cry", "embarassed", "foot-in-mouth", "frown", "innocent", "kiss", "laughing", "money-mouth", "sealed", "smile", "surprised"], ["cool", "cry", "embarassed", "foot-in-mouth", "frown", "innocent", "kiss", "laughing", "money-mouth", "sealed", "smile", "surprised"], ["cool", "cry", "embarassed", "foot-in-mouth", "frown", "innocent", "kiss", "laughing", "money-mouth", "sealed", "smile", "surprised"], ["cool", "cry", "embarassed", "foot-in-mouth", "frown", "innocent", "kiss", "laughing", "money-mouth", "sealed", "smile", "surprised"], ["cool", "cry", "embarassed", "foot-in-mouth", "frown", "innocent", "kiss", "laughing", "money-mouth", "sealed", "smile", "surprised"], ["cool", "cry", "embarassed", "foot-in-mouth", "frown", "innocent", "kiss", "laughing", "money-mouth", "sealed", "smile", "surprised"], ]; a.addCommand('show_emoticons', function() { a.windowManager.open({ title: "Emoticons", width : 300, height : 200, html: c(), onclick: function(b) { var c = a.dom.getParent(b.target, "a"); c && (a.insertContent('' + c.getAttribute('), this.hide()) return false; }, inline : true, autoScroll: true, scrollbars:true, buttons:[], }, { plugin_url : b // Plugin absolute URL }); }); a.addButton('emoticons', { title : 'Emoticons', cmd : 'show_emoticons', }); });