plugin.js 0000666 00000003314 15214242276 0006412 0 ustar 00 /**
* plugin.js (edited for WP)
*
* Copyright, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
/*global tinymce:true */
tinymce.PluginManager.add('emoticons', function(editor, url) {
var emoticons = [{
smile: ':-)',
razz: ':-P',
cool: '8-)',
wink: ';-)',
biggrin: ':-D'
},
{
twisted: ':twisted:',
mrgreen: ':mrgreen:',
lol: ':lol:',
rolleyes: ':roll:',
confused: ':-?'
},
{
cry: ':cry:',
surprised: ':-o',
evil: ':evil:',
neutral: ':-|',
redface: ':oops:'
},
{
mad: ':-x',
eek: '8-O',
sad: ':-(',
arrow: ':arrow:',
idea: ':idea:'
}];
function getHtml() {
var emoticonsHtml;
emoticonsHtml = '
';
tinymce.each(emoticons, function( row ) {
emoticonsHtml += '';
tinymce.each( row, function( icon, name ) {
var emoticonUrl = url + '/img/icon_' + name + '.gif';
emoticonsHtml += ' | ';
});
emoticonsHtml += '
';
});
emoticonsHtml += '
';
return emoticonsHtml;
}
editor.addButton('emoticons', {
type: 'panelbutton',
panel: {
role: 'application',
autohide: true,
html: getHtml,
onclick: function(e) {
var linkElm = editor.dom.getParent( e.target, 'a' );
if ( linkElm ) {
editor.insertContent(
' ' + linkElm.getAttribute('data-mce-alt') + ' '
);
this.hide();
}
}
},
tooltip: 'Emoticons'
});
});
plugin.min.js 0000666 00000001724 15214242276 0007177 0 ustar 00 tinymce.PluginManager.add("emoticons",function(a,b){function c(){var a;return a='',tinymce.each(d,function(c){a+="",tinymce.each(c,function(c,d){var e=b+"/img/icon_"+d+".gif";a+=' | '}),a+="
"}),a+="
"}var d=[{smile:":-)",razz:":-P",cool:"8-)",wink:";-)",biggrin:":-D"},{twisted:":twisted:",mrgreen:":mrgreen:",lol:":lol:",rolleyes:":roll:",confused:":-?"},{cry:":cry:",surprised:":-o",evil:":evil:",neutral:":-|",redface:":oops:"},{mad:":-x",eek:"8-O",sad:":-(",arrow:":arrow:",idea:":idea:"}];a.addButton("emoticons",{type:"panelbutton",panel:{role:"application",autohide:!0,html:c,onclick:function(b){var c=a.dom.getParent(b.target,"a");c&&(a.insertContent(" "+c.getAttribute("data-mce-alt")+" "),this.hide())}},tooltip:"Emoticons"})}); img/icon_mad.gif 0000666 00000000256 15214242276 0007574 0 ustar 00 GIF89a
EEE !
, [IjեpLA'a'j *`pP9ĞAf-+`W A&;`mXk\
0ò& ; img/icon_evil.gif 0000666 00000000354 15214242276 0007771 0 ustar 00 GIF89a EEE * m ! , i @h$*2FC5@NG
@ ꚱ- h>h)@T]ᰥ"ij,cIwdGk+:G(F() Z#&(! ; img/icon_confused.gif 0000666 00000000253 15214242276 0010636 0 ustar 00 GIF89a EEE ! , XIjՕpCLA''vqj ?*pƂ!\'pd/N3(^0-U&kQ@73,Km ; img/icon_biggrin.gif 0000666 00000000254 15214242276 0010452 0 ustar 00 GIF89a
EEE !
, YI jե"pIL@gpj)w jʛ
pJQl: `J
PJ4ZNB oYbe6 ; img/icon_razz.gif 0000666 00000000260 15214242276 0010014 0 ustar 00 GIF89a EEE 333 ! , ]IjեRpLA''𦫖qj
*pƂJ" `<+kYa<v *~20̰,5 ; img/icon_arrow.gif 0000666 00000000252 15214242276 0010161 0 ustar 00 GIF89a EEE ! , WIjՕpELAgpjBUvsC;
`"fs 2([Lhբa~fX$ ; img/icon_cool.gif 0000666 00000000254 15214242276 0007765 0 ustar 00 GIF89a
EEE !
, YIjUpCLAgpjk+;vECp4xevE+mAPiN X:o(`e6 ; img/icon_lol.gif 0000666 00000000520 15214242276 0007613 0 ustar 00 GIF89a
EEE !NETSCAPE2.0 !
, ZI jեR",Ay hTr
1r)\aɎC%<