tinymce.PluginManager.add("emoticons2",function(e,t){function n(){var e;return e='<table role="list" class="mce-grid">',tinymce.each(r,function(n){e+="<tr>",tinymce.each(n,function(n){var r=t+"/img/"+n+".png";e+='<td><a href="#" data-mce-url="'+r+'" data-mce-alt="'+n+'" tabindex="-1" role="option" aria-label="'+n+'"><img src="'+r+'" style="width: 24px; height: 24px" role="presentation" /></a></td>'}),e+="</tr>"}),e+="</table>"}var r=[["happy","laugh","astonished","angry"],["frown","disappointed","cool","nerdy-smile"],["confused","nervous","pensive","sad"],["shocked","shut-mouth","wink","thinking"]];e.addButton("emoticons2",{type:"panelbutton",panel:{role:"application",autohide:!0,html:n,onclick:function(t){var n=e.dom.getParent(t.target,"a");n&&(e.insertContent('<img style="width:48px" src="'+n.getAttribute("data-mce-url")+'" alt="'+n.getAttribute("data-mce-alt")+'" />'),this.hide())}},tooltip:"Emoticons2"})});
|