File: Web/scripts/tinymce/plugins/emoticons2/plugin.min.js

Recommend this page to a friend!
  Classes of Burge Lab  >  Burge CMF  >  Web/scripts/tinymce/plugins/emoticons2/plugin.min.js  >  Download  
File: Web/scripts/tinymce/plugins/emoticons2/plugin.min.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Burge CMF
Framework to publish managed content
Author: By
Last change:
Date: 4 years ago
Size: 924 bytes
 

Contents

Class file image Download
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"})});

For more information send a message to info at phpclasses dot org.