diff options
Diffstat (limited to 'site_media/js/tiny_mce/plugins/emotions')
21 files changed, 127 insertions, 0 deletions
diff --git a/site_media/js/tiny_mce/plugins/emotions/editor_plugin.js b/site_media/js/tiny_mce/plugins/emotions/editor_plugin.js new file mode 100644 index 0000000..dbdd8ff --- /dev/null +++ b/site_media/js/tiny_mce/plugins/emotions/editor_plugin.js @@ -0,0 +1 @@ +(function(a){a.create("tinymce.plugins.EmotionsPlugin",{init:function(b,c){b.addCommand("mceEmotion",function(){b.windowManager.open({file:c+"/emotions.htm",width:250+parseInt(b.getLang("emotions.delta_width",0)),height:160+parseInt(b.getLang("emotions.delta_height",0)),inline:1},{plugin_url:c})});b.addButton("emotions",{title:"emotions.emotions_desc",cmd:"mceEmotion"})},getInfo:function(){return{longname:"Emotions",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions",version:a.majorVersion+"."+a.minorVersion}}});a.PluginManager.add("emotions",a.plugins.EmotionsPlugin)})(tinymce);
\ No newline at end of file diff --git a/site_media/js/tiny_mce/plugins/emotions/editor_plugin_src.js b/site_media/js/tiny_mce/plugins/emotions/editor_plugin_src.js new file mode 100644 index 0000000..71d5416 --- /dev/null +++ b/site_media/js/tiny_mce/plugins/emotions/editor_plugin_src.js @@ -0,0 +1,43 @@ +/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function(tinymce) {
+ tinymce.create('tinymce.plugins.EmotionsPlugin', {
+ init : function(ed, url) {
+ // Register commands
+ ed.addCommand('mceEmotion', function() {
+ ed.windowManager.open({
+ file : url + '/emotions.htm',
+ width : 250 + parseInt(ed.getLang('emotions.delta_width', 0)),
+ height : 160 + parseInt(ed.getLang('emotions.delta_height', 0)),
+ inline : 1
+ }, {
+ plugin_url : url
+ });
+ });
+
+ // Register buttons
+ ed.addButton('emotions', {title : 'emotions.emotions_desc', cmd : 'mceEmotion'});
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Emotions',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('emotions', tinymce.plugins.EmotionsPlugin);
+})(tinymce);
\ No newline at end of file diff --git a/site_media/js/tiny_mce/plugins/emotions/emotions.htm b/site_media/js/tiny_mce/plugins/emotions/emotions.htm new file mode 100644 index 0000000..9f6f358 --- /dev/null +++ b/site_media/js/tiny_mce/plugins/emotions/emotions.htm @@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#emotions_dlg.title}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="js/emotions.js"></script>
+</head>
+<body style="display: none" role="application" aria-labelledby="app_title">
+ <span style="display:none;" id="app_title">{#emotions_dlg.title}</span>
+ <div align="center">
+ <div class="title">{#emotions_dlg.title}:<br /><br /></div>
+
+ <table role="presentation" border="0" cellspacing="0" cellpadding="4">
+ <tr>
+ <td><a href="javascript:EmotionsDialog.insert('smiley-cool.gif','emotions_dlg.cool');"><img src="img/smiley-cool.gif" width="18" height="18" border="0" alt="{#emotions_dlg.cool}" title="{#emotions_dlg.cool}" /></a></td>
+ <td><a href="javascript:EmotionsDialog.insert('smiley-cry.gif','emotions_dlg.cry');"><img src="img/smiley-cry.gif" width="18" height="18" border="0" alt="{#emotions_dlg.cry}" title="{#emotions_dlg.cry}" /></a></td>
+ <td><a href="javascript:EmotionsDialog.insert('smiley-embarassed.gif','emotions_dlg.embarassed');"><img src="img/smiley-embarassed.gif" width="18" height="18" border="0" alt="{#emotions_dlg.embarassed}" title="{#emotions_dlg.embarassed}" /></a></td>
+ <td><a href="javascript:EmotionsDialog.insert('smiley-foot-in-mouth.gif','emotions_dlg.foot_in_mouth');"><img src="img/smiley-foot-in-mouth.gif" width="18" height="18" border="0" alt="{#emotions_dlg.foot_in_mouth}" title="{#emotions_dlg.foot_in_mouth}" /></a></td>
+ </tr>
+ <tr>
+ <td><a href="javascript:EmotionsDialog.insert('smiley-frown.gif','emotions_dlg.frown');"><img src="img/smiley-frown.gif" width="18" height="18" border="0" alt="{#emotions_dlg.frown}" title="{#emotions_dlg.frown}" /></a></td>
+ <td><a href="javascript:EmotionsDialog.insert('smiley-innocent.gif','emotions_dlg.innocent');"><img src="img/smiley-innocent.gif" width="18" height="18" border="0" alt="{#emotions_dlg.innocent}" title="{#emotions_dlg.innocent}" /></a></td>
+ <td><a href="javascript:EmotionsDialog.insert('smiley-kiss.gif','emotions_dlg.kiss');"><img src="img/smiley-kiss.gif" width="18" height="18" border="0" alt="{#emotions_dlg.kiss}" title="{#emotions_dlg.kiss}" /></a></td>
+ <td><a href="javascript:EmotionsDialog.insert('smiley-laughing.gif','emotions_dlg.laughing');"><img src="img/smiley-laughing.gif" width="18" height="18" border="0" alt="{#emotions_dlg.laughing}" title="{#emotions_dlg.laughing}" /></a></td>
+ </tr>
+ <tr>
+ <td><a href="javascript:EmotionsDialog.insert('smiley-money-mouth.gif','emotions_dlg.money_mouth');"><img src="img/smiley-money-mouth.gif" width="18" height="18" border="0" alt="{#emotions_dlg.money_mouth}" title="{#emotions_dlg.money_mouth}" /></a></td>
+ <td><a href="javascript:EmotionsDialog.insert('smiley-sealed.gif','emotions_dlg.sealed');"><img src="img/smiley-sealed.gif" width="18" height="18" border="0" alt="{#emotions_dlg.sealed}" title="{#emotions_dlg.sealed}" /></a></td>
+ <td><a href="javascript:EmotionsDialog.insert('smiley-smile.gif','emotions_dlg.smile');"><img src="img/smiley-smile.gif" width="18" height="18" border="0" alt="{#emotions_dlg.smile}" title="{#emotions_dlg.smile}" /></a></td>
+ <td><a href="javascript:EmotionsDialog.insert('smiley-surprised.gif','emotions_dlg.surprised');"><img src="img/smiley-surprised.gif" width="18" height="18" border="0" alt="{#emotions_dlg.surprised}" title="{#emotions_dlg.surprised}" /></a></td>
+ </tr>
+ <tr>
+ <td><a href="javascript:EmotionsDialog.insert('smiley-tongue-out.gif','emotions_dlg.tongue_out');"><img src="img/smiley-tongue-out.gif" width="18" height="18" border="0" alt="{#emotions_dlg.tongue-out}" title="{#emotions_dlg.tongue_out}" /></a></td>
+ <td><a href="javascript:EmotionsDialog.insert('smiley-undecided.gif','emotions_dlg.undecided');"><img src="img/smiley-undecided.gif" width="18" height="18" border="0" alt="{#emotions_dlg.undecided}" title="{#emotions_dlg.undecided}" /></a></td>
+ <td><a href="javascript:EmotionsDialog.insert('smiley-wink.gif','emotions_dlg.wink');"><img src="img/smiley-wink.gif" width="18" height="18" border="0" alt="{#emotions_dlg.wink}" title="{#emotions_dlg.wink}" /></a></td>
+ <td><a href="javascript:EmotionsDialog.insert('smiley-yell.gif','emotions_dlg.yell');"><img src="img/smiley-yell.gif" width="18" height="18" border="0" alt="{#emotions_dlg.yell}" title="{#emotions_dlg.yell}" /></a></td>
+ </tr>
+ </table>
+ </div>
+</body>
+</html>
diff --git a/site_media/js/tiny_mce/plugins/emotions/img/smiley-cool.gif b/site_media/js/tiny_mce/plugins/emotions/img/smiley-cool.gif Binary files differnew file mode 100644 index 0000000..ba90cc3 --- /dev/null +++ b/site_media/js/tiny_mce/plugins/emotions/img/smiley-cool.gif diff --git a/site_media/js/tiny_mce/plugins/emotions/img/smiley-cry.gif b/site_media/js/tiny_mce/plugins/emotions/img/smiley-cry.gif Binary files differnew file mode 100644 index 0000000..74d897a --- /dev/null +++ b/site_media/js/tiny_mce/plugins/emotions/img/smiley-cry.gif diff --git a/site_media/js/tiny_mce/plugins/emotions/img/smiley-embarassed.gif b/site_media/js/tiny_mce/plugins/emotions/img/smiley-embarassed.gif Binary files differnew file mode 100644 index 0000000..963a96b --- /dev/null +++ b/site_media/js/tiny_mce/plugins/emotions/img/smiley-embarassed.gif diff --git a/site_media/js/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif b/site_media/js/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif Binary files differnew file mode 100644 index 0000000..16f68cc --- /dev/null +++ b/site_media/js/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif diff --git a/site_media/js/tiny_mce/plugins/emotions/img/smiley-frown.gif b/site_media/js/tiny_mce/plugins/emotions/img/smiley-frown.gif Binary files differnew file mode 100644 index 0000000..716f55e --- /dev/null +++ b/site_media/js/tiny_mce/plugins/emotions/img/smiley-frown.gif diff --git a/site_media/js/tiny_mce/plugins/emotions/img/smiley-innocent.gif b/site_media/js/tiny_mce/plugins/emotions/img/smiley-innocent.gif Binary files differnew file mode 100644 index 0000000..334d49e --- /dev/null +++ b/site_media/js/tiny_mce/plugins/emotions/img/smiley-innocent.gif diff --git a/site_media/js/tiny_mce/plugins/emotions/img/smiley-kiss.gif b/site_media/js/tiny_mce/plugins/emotions/img/smiley-kiss.gif Binary files differnew file mode 100644 index 0000000..4efd549 --- /dev/null +++ b/site_media/js/tiny_mce/plugins/emotions/img/smiley-kiss.gif diff --git a/site_media/js/tiny_mce/plugins/emotions/img/smiley-laughing.gif b/site_media/js/tiny_mce/plugins/emotions/img/smiley-laughing.gif Binary files differnew file mode 100644 index 0000000..1606c11 --- /dev/null +++ b/site_media/js/tiny_mce/plugins/emotions/img/smiley-laughing.gif diff --git a/site_media/js/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif b/site_media/js/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif Binary files differnew file mode 100644 index 0000000..ca2451e --- /dev/null +++ b/site_media/js/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif diff --git a/site_media/js/tiny_mce/plugins/emotions/img/smiley-sealed.gif b/site_media/js/tiny_mce/plugins/emotions/img/smiley-sealed.gif Binary files differnew file mode 100644 index 0000000..b33d3cc --- /dev/null +++ b/site_media/js/tiny_mce/plugins/emotions/img/smiley-sealed.gif diff --git a/site_media/js/tiny_mce/plugins/emotions/img/smiley-smile.gif b/site_media/js/tiny_mce/plugins/emotions/img/smiley-smile.gif Binary files differnew file mode 100644 index 0000000..e6a9e60 --- /dev/null +++ b/site_media/js/tiny_mce/plugins/emotions/img/smiley-smile.gif diff --git a/site_media/js/tiny_mce/plugins/emotions/img/smiley-surprised.gif b/site_media/js/tiny_mce/plugins/emotions/img/smiley-surprised.gif Binary files differnew file mode 100644 index 0000000..cb99cdd --- /dev/null +++ b/site_media/js/tiny_mce/plugins/emotions/img/smiley-surprised.gif diff --git a/site_media/js/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif b/site_media/js/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif Binary files differnew file mode 100644 index 0000000..2075dc1 --- /dev/null +++ b/site_media/js/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif diff --git a/site_media/js/tiny_mce/plugins/emotions/img/smiley-undecided.gif b/site_media/js/tiny_mce/plugins/emotions/img/smiley-undecided.gif Binary files differnew file mode 100644 index 0000000..bef7e25 --- /dev/null +++ b/site_media/js/tiny_mce/plugins/emotions/img/smiley-undecided.gif diff --git a/site_media/js/tiny_mce/plugins/emotions/img/smiley-wink.gif b/site_media/js/tiny_mce/plugins/emotions/img/smiley-wink.gif Binary files differnew file mode 100644 index 0000000..9faf1af --- /dev/null +++ b/site_media/js/tiny_mce/plugins/emotions/img/smiley-wink.gif diff --git a/site_media/js/tiny_mce/plugins/emotions/img/smiley-yell.gif b/site_media/js/tiny_mce/plugins/emotions/img/smiley-yell.gif Binary files differnew file mode 100644 index 0000000..648e6e8 --- /dev/null +++ b/site_media/js/tiny_mce/plugins/emotions/img/smiley-yell.gif diff --git a/site_media/js/tiny_mce/plugins/emotions/js/emotions.js b/site_media/js/tiny_mce/plugins/emotions/js/emotions.js new file mode 100644 index 0000000..c549367 --- /dev/null +++ b/site_media/js/tiny_mce/plugins/emotions/js/emotions.js @@ -0,0 +1,22 @@ +tinyMCEPopup.requireLangPack();
+
+var EmotionsDialog = {
+ init : function(ed) {
+ tinyMCEPopup.resizeToInnerSize();
+ },
+
+ insert : function(file, title) {
+ var ed = tinyMCEPopup.editor, dom = ed.dom;
+
+ tinyMCEPopup.execCommand('mceInsertContent', false, dom.createHTML('img', {
+ src : tinyMCEPopup.getWindowArg('plugin_url') + '/img/' + file,
+ alt : ed.getLang(title),
+ title : ed.getLang(title),
+ border : 0
+ }));
+
+ tinyMCEPopup.close();
+ }
+};
+
+tinyMCEPopup.onInit.add(EmotionsDialog.init, EmotionsDialog);
diff --git a/site_media/js/tiny_mce/plugins/emotions/langs/en_dlg.js b/site_media/js/tiny_mce/plugins/emotions/langs/en_dlg.js new file mode 100644 index 0000000..3b57ad9 --- /dev/null +++ b/site_media/js/tiny_mce/plugins/emotions/langs/en_dlg.js @@ -0,0 +1,20 @@ +tinyMCE.addI18n('en.emotions_dlg',{
+title:"Insert emotion",
+desc:"Emotions",
+cool:"Cool",
+cry:"Cry",
+embarassed:"Embarassed",
+foot_in_mouth:"Foot in mouth",
+frown:"Frown",
+innocent:"Innocent",
+kiss:"Kiss",
+laughing:"Laughing",
+money_mouth:"Money mouth",
+sealed:"Sealed",
+smile:"Smile",
+surprised:"Surprised",
+tongue_out:"Tongue out",
+undecided:"Undecided",
+wink:"Wink",
+yell:"Yell"
+});
\ No newline at end of file |