enable tinymce editor
							
								
								
									
										1
									
								
								plugins/TinyMCE/js/plugins/emotions/editor_plugin.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -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);
 | 
			
		||||
							
								
								
									
										43
									
								
								plugins/TinyMCE/js/plugins/emotions/editor_plugin_src.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -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);
 | 
			
		||||
							
								
								
									
										40
									
								
								plugins/TinyMCE/js/plugins/emotions/emotions.htm
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,40 @@
 | 
			
		||||
<!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">
 | 
			
		||||
	<div align="center">
 | 
			
		||||
		<div class="title">{#emotions_dlg.title}:<br /><br /></div>
 | 
			
		||||
 | 
			
		||||
		<table 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>
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								plugins/TinyMCE/js/plugins/emotions/img/smiley-cool.gif
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 354 B  | 
							
								
								
									
										
											BIN
										
									
								
								plugins/TinyMCE/js/plugins/emotions/img/smiley-cry.gif
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 329 B  | 
							
								
								
									
										
											BIN
										
									
								
								plugins/TinyMCE/js/plugins/emotions/img/smiley-embarassed.gif
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 331 B  | 
							
								
								
									
										
											BIN
										
									
								
								plugins/TinyMCE/js/plugins/emotions/img/smiley-foot-in-mouth.gif
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 344 B  | 
							
								
								
									
										
											BIN
										
									
								
								plugins/TinyMCE/js/plugins/emotions/img/smiley-frown.gif
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 340 B  | 
							
								
								
									
										
											BIN
										
									
								
								plugins/TinyMCE/js/plugins/emotions/img/smiley-innocent.gif
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 336 B  | 
							
								
								
									
										
											BIN
										
									
								
								plugins/TinyMCE/js/plugins/emotions/img/smiley-kiss.gif
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 338 B  | 
							
								
								
									
										
											BIN
										
									
								
								plugins/TinyMCE/js/plugins/emotions/img/smiley-laughing.gif
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 344 B  | 
							
								
								
									
										
											BIN
										
									
								
								plugins/TinyMCE/js/plugins/emotions/img/smiley-money-mouth.gif
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 321 B  | 
							
								
								
									
										
											BIN
										
									
								
								plugins/TinyMCE/js/plugins/emotions/img/smiley-sealed.gif
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 325 B  | 
							
								
								
									
										
											BIN
										
									
								
								plugins/TinyMCE/js/plugins/emotions/img/smiley-smile.gif
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 345 B  | 
							
								
								
									
										
											BIN
										
									
								
								plugins/TinyMCE/js/plugins/emotions/img/smiley-surprised.gif
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 342 B  | 
							
								
								
									
										
											BIN
										
									
								
								plugins/TinyMCE/js/plugins/emotions/img/smiley-tongue-out.gif
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 328 B  | 
							
								
								
									
										
											BIN
										
									
								
								plugins/TinyMCE/js/plugins/emotions/img/smiley-undecided.gif
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 337 B  | 
							
								
								
									
										
											BIN
										
									
								
								plugins/TinyMCE/js/plugins/emotions/img/smiley-wink.gif
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 351 B  | 
							
								
								
									
										
											BIN
										
									
								
								plugins/TinyMCE/js/plugins/emotions/img/smiley-yell.gif
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 336 B  | 
							
								
								
									
										22
									
								
								plugins/TinyMCE/js/plugins/emotions/js/emotions.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -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);
 | 
			
		||||
							
								
								
									
										20
									
								
								plugins/TinyMCE/js/plugins/emotions/langs/en_dlg.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -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"
 | 
			
		||||
});
 | 
			
		||||