Initial Commit of AgileBill Open Source
2
includes/tinymce/jscripts/tiny_mce/plugins/emotions/editor_plugin.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* Import plugin specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('emotions','en,sv,zh_cn,cs,fa,fr_ca,fr,de');function TinyMCE_emotions_getControlHTML(control_name){switch(control_name){case "emotions":return '<img id="{$editor_id}_emotions" src="{$pluginurl}/images/emotions.gif" title="{$lang_emotions_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" onclick="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceEmotion\');">';}return "";}function TinyMCE_emotions_execCommand(editor_id,element,command,user_interface,value){switch(command){case "mceEmotion":var template=new Array();template['file']='../../plugins/emotions/emotions.htm';template['width']=150;template['height']=180;tinyMCE.openWindow(template,{editor_id:editor_id});return true;}return false;}
|
36
includes/tinymce/jscripts/tiny_mce/plugins/emotions/editor_plugin_src.js
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
/* Import plugin specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('emotions', 'en,sv,zh_cn,cs,fa,fr_ca,fr,de');
|
||||
|
||||
/**
|
||||
* Returns the HTML contents of the emotions control.
|
||||
*/
|
||||
function TinyMCE_emotions_getControlHTML(control_name) {
|
||||
switch (control_name) {
|
||||
case "emotions":
|
||||
return '<img id="{$editor_id}_emotions" src="{$pluginurl}/images/emotions.gif" title="{$lang_emotions_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" onclick="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceEmotion\');">';
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes the mceEmotion command.
|
||||
*/
|
||||
function TinyMCE_emotions_execCommand(editor_id, element, command, user_interface, value) {
|
||||
// Handle commands
|
||||
switch (command) {
|
||||
case "mceEmotion":
|
||||
var template = new Array();
|
||||
|
||||
template['file'] = '../../plugins/emotions/emotions.htm'; // Relative to theme
|
||||
template['width'] = 150;
|
||||
template['height'] = 180;
|
||||
|
||||
tinyMCE.openWindow(template, {editor_id : editor_id});
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Pass to next handler in chain
|
||||
return false;
|
||||
}
|
45
includes/tinymce/jscripts/tiny_mce/plugins/emotions/emotions.htm
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>{$lang_insert_emotions_title}</title>
|
||||
<script language="javascript" src="../../tiny_mce_popup.js"></script>
|
||||
<script language="javascript">
|
||||
function insertEmotion(file_name) {
|
||||
if (window.opener) {
|
||||
tinyMCE.insertImage(tinyMCE.baseURL + "/plugins/emotions/images/" + file_name);
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="window.focus();">
|
||||
<div align="center">
|
||||
<div class="title">{$lang_insert_emotions_title}:<br /><br /></div>
|
||||
<table border="0" cellspacing="0" cellpadding="4">
|
||||
<tr>
|
||||
<td><a href="javascript:void(0);" onmousedown="insertEmotion('smiley-cool.gif');"><img src="images/smiley-cool.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:void(0);" onmousedown="insertEmotion('smiley-cry.gif');"><img src="images/smiley-cry.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:void(0);" onmousedown="insertEmotion('smiley-embarassed.gif');"><img src="images/smiley-embarassed.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:void(0);" onmousedown="insertEmotion('smiley-foot-in-mouth.gif');"><img src="images/smiley-foot-in-mouth.gif" width="18" height="18" border="0" /></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="javascript:void(0);" onmousedown="insertEmotion('smiley-frown.gif');"><img src="images/smiley-frown.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:void(0);" onmousedown="insertEmotion('smiley-innocent.gif');"><img src="images/smiley-innocent.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:void(0);" onmousedown="insertEmotion('smiley-kiss.gif');"><img src="images/smiley-kiss.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:void(0);" onmousedown="insertEmotion('smiley-laughing.gif');"><img src="images/smiley-laughing.gif" width="18" height="18" border="0" /></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="javascript:void(0);" onmousedown="insertEmotion('smiley-money-mouth.gif');"><img src="images/smiley-money-mouth.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:void(0);" onmousedown="insertEmotion('smiley-sealed.gif');"><img src="images/smiley-sealed.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:void(0);" onmousedown="insertEmotion('smiley-smile.gif');"><img src="images/smiley-smile.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:void(0);" onmousedown="insertEmotion('smiley-surprised.gif');"><img src="images/smiley-surprised.gif" width="18" height="18" border="0" /></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="javascript:void(0);" onmousedown="insertEmotion('smiley-tongue-out.gif');"><img src="images/smiley-tongue-out.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:void(0);" onmousedown="insertEmotion('smiley-undecided.gif');"><img src="images/smiley-undecided.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:void(0);" onmousedown="insertEmotion('smiley-wink.gif');"><img src="images/smiley-wink.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:void(0);" onmousedown="insertEmotion('smiley-yell.gif');"><img src="images/smiley-yell.gif" width="18" height="18" border="0" /></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
BIN
includes/tinymce/jscripts/tiny_mce/plugins/emotions/images/emotions.gif
vendored
Normal file
After Width: | Height: | Size: 1.1 KiB |
2
includes/tinymce/jscripts/tiny_mce/plugins/emotions/images/readme.txt
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
These emotions where taken from Mozilla Thunderbird.
|
||||
I hope they don't get angry if I use them here after all this is a open source project aswell.
|
BIN
includes/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cool.gif
vendored
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
includes/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cry.gif
vendored
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
includes/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-embarassed.gif
vendored
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
includes/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-foot-in-mouth.gif
vendored
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
includes/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-frown.gif
vendored
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
includes/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-innocent.gif
vendored
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
includes/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-kiss.gif
vendored
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
includes/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-laughing.gif
vendored
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
includes/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-money-mouth.gif
vendored
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
includes/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-sealed.gif
vendored
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
includes/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-smile.gif
vendored
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
includes/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-surprised.gif
vendored
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
includes/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-tongue-out.gif
vendored
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
includes/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-undecided.gif
vendored
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
includes/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif
vendored
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
includes/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-yell.gif
vendored
Normal file
After Width: | Height: | Size: 1.1 KiB |
4
includes/tinymce/jscripts/tiny_mce/plugins/emotions/langs/cs.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
// UK lang variables
|
||||
|
||||
tinyMCELang['lang_insert_emotions_title'] = 'Vlo<6C>it emotikon';
|
||||
tinyMCELang['lang_emotions_desc'] = 'Emotikony';
|
6
includes/tinymce/jscripts/tiny_mce/plugins/emotions/langs/de.js
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
// DE lang variables
|
||||
|
||||
|
||||
tinyMCELang['lang_insert_emotions_title'] = 'Emotion einfügen';
|
||||
tinyMCELang['lang_emotions_desc'] = 'Emotion';
|
||||
|
5
includes/tinymce/jscripts/tiny_mce/plugins/emotions/langs/el.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
// Greek lang variables by Jacaranda Bill
|
||||
|
||||
tinyMCELang['lang_insert_emotions_title'] = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> emoticon';
|
||||
tinyMCELang['lang_emotions_desc'] = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> emoticons';
|
||||
|
5
includes/tinymce/jscripts/tiny_mce/plugins/emotions/langs/en.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
// UK lang variables
|
||||
|
||||
tinyMCELang['lang_insert_emotions_title'] = 'Insert emotion';
|
||||
tinyMCELang['lang_emotions_desc'] = 'Emotions';
|
||||
|
10
includes/tinymce/jscripts/tiny_mce/plugins/emotions/langs/fa.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
// IR lang variables
|
||||
// Persian (Farsi) language pack (for IRAN)
|
||||
// By: Morteza Zafari
|
||||
// Lost@LostLord.com
|
||||
// http://www.LostLord.com
|
||||
|
||||
tinyMCELang['lang_dir'] = 'rtl';
|
||||
tinyMCELang['lang_insert_emotions_title'] = 'افزودن شکلک';
|
||||
tinyMCELang['lang_emotions_desc'] = 'شکلکها';
|
||||
|
5
includes/tinymce/jscripts/tiny_mce/plugins/emotions/langs/fr.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
// French lang variables by Laurent Dran
|
||||
|
||||
tinyMCELang['lang_insert_emotions_title'] = 'Insèrer un émoticon';
|
||||
tinyMCELang['lang_emotions_desc'] = 'Émoticons';
|
||||
|
5
includes/tinymce/jscripts/tiny_mce/plugins/emotions/langs/fr_ca.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
// CAN_FR lang variables
|
||||
|
||||
tinyMCELang['lang_insert_emotions_title'] = 'Ins<6E>rer un <20>moticon';
|
||||
tinyMCELang['lang_emotions_desc'] = '<27>moticons';
|
||||
|
5
includes/tinymce/jscripts/tiny_mce/plugins/emotions/langs/it.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
//IT lang variables
|
||||
|
||||
tinyMCELang['lang_insert_emotions_title'] = 'Inserisci una emoticon';
|
||||
tinyMCELang['lang_emotions_desc'] = 'Emoticon';
|
||||
|
5
includes/tinymce/jscripts/tiny_mce/plugins/emotions/langs/ko.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
// KO lang variables
|
||||
|
||||
tinyMCELang['lang_insert_emotions_title'] = '<27≯<EFBFBD>Ƽ<EFBFBD><C6BC> <20>ֱ<EFBFBD>';
|
||||
tinyMCELang['lang_emotions_desc'] = '<27≯<EFBFBD>Ƽ<EFBFBD><C6BC>';
|
||||
|
4
includes/tinymce/jscripts/tiny_mce/plugins/emotions/langs/sv.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
// SE lang variables
|
||||
|
||||
tinyMCELang['lang_insert_emotions_title'] = 'Klistain k<>nnsla';
|
||||
tinyMCELang['lang_emotions_desc'] = 'K<>nnslor';
|
5
includes/tinymce/jscripts/tiny_mce/plugins/emotions/langs/zh_cn.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
// Simplified Chinese lang variables contributed by cube316 (cube316@etang.com)
|
||||
|
||||
tinyMCELang['lang_insert_emotions_title'] = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
||||
tinyMCELang['lang_emotions_desc'] = '<27><><EFBFBD><EFBFBD>';
|
||||
|
20
includes/tinymce/jscripts/tiny_mce/plugins/emotions/readme.txt
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
Emotions plugin for TinyMCE
|
||||
------------------------------
|
||||
|
||||
Installation instructions:
|
||||
* Copy the emotions directory to the plugins directory of TinyMCE (/jscripts/tiny_mce/plugins).
|
||||
* Add plugin to TinyMCE plugin option list example: plugins : "emotions".
|
||||
* Add the emotions button name to button list, example: theme_advanced_buttons3_add : "emotions".
|
||||
|
||||
Initialization example:
|
||||
tinyMCE.init({
|
||||
theme : "advanced",
|
||||
mode : "textareas",
|
||||
plugins : "emotions",
|
||||
theme_advanced_buttons3_add : "emotions"
|
||||
});
|
||||
|
||||
Copyright notice:
|
||||
These emotions where taken from Mozilla Thunderbird.
|
||||
I hope they don't get angry if I use them here after all this is a open source project
|
||||
aswell and I realy love their product.
|