tinymce editor
36
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/editor_plugin.js
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
/* Import theme specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('emotions', 'uk,se');
|
||||
|
||||
/**
|
||||
* 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'] = 170;
|
||||
|
||||
tinyMCE.openWindow(template, {editor_id : editor_id});
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Pass to next handler in chain
|
||||
return false;
|
||||
}
|
||||
36
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/editor_plugin_1.js
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
/* Import theme specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('emotions', 'uk,se');
|
||||
|
||||
/**
|
||||
* 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'] = 170;
|
||||
|
||||
tinyMCE.openWindow(template, {editor_id : editor_id});
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Pass to next handler in chain
|
||||
return false;
|
||||
}
|
||||
45
www/extras/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:insertEmotion('smiley-cool.gif');"><img src="images/smiley-cool.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:insertEmotion('smiley-cry.gif');"><img src="images/smiley-cry.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:insertEmotion('smiley-embarassed.gif');"><img src="images/smiley-embarassed.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript: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:insertEmotion('smiley-frown.gif');"><img src="images/smiley-frown.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:insertEmotion('smiley-innocent.gif');"><img src="images/smiley-innocent.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:insertEmotion('smiley-kiss.gif');"><img src="images/smiley-kiss.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:insertEmotion('smiley-laughing.gif');"><img src="images/smiley-laughing.gif" width="18" height="18" border="0" /></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="javascript:insertEmotion('smiley-money-mouth.gif');"><img src="images/smiley-money-mouth.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:insertEmotion('smiley-sealed.gif');"><img src="images/smiley-sealed.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:insertEmotion('smiley-smile.gif');"><img src="images/smiley-smile.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:insertEmotion('smiley-surprised.gif');"><img src="images/smiley-surprised.gif" width="18" height="18" border="0" /></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="javascript:insertEmotion('smiley-tongue-out.gif');"><img src="images/smiley-tongue-out.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:insertEmotion('smiley-undecided.gif');"><img src="images/smiley-undecided.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:insertEmotion('smiley-wink.gif');"><img src="images/smiley-wink.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:insertEmotion('smiley-yell.gif');"><img src="images/smiley-yell.gif" width="18" height="18" border="0" /></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
45
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/emotions_1.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:insertEmotion('smiley-cool.gif');"><img src="images/smiley-cool.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:insertEmotion('smiley-cry.gif');"><img src="images/smiley-cry.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:insertEmotion('smiley-embarassed.gif');"><img src="images/smiley-embarassed.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript: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:insertEmotion('smiley-frown.gif');"><img src="images/smiley-frown.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:insertEmotion('smiley-innocent.gif');"><img src="images/smiley-innocent.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:insertEmotion('smiley-kiss.gif');"><img src="images/smiley-kiss.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:insertEmotion('smiley-laughing.gif');"><img src="images/smiley-laughing.gif" width="18" height="18" border="0" /></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="javascript:insertEmotion('smiley-money-mouth.gif');"><img src="images/smiley-money-mouth.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:insertEmotion('smiley-sealed.gif');"><img src="images/smiley-sealed.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:insertEmotion('smiley-smile.gif');"><img src="images/smiley-smile.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:insertEmotion('smiley-surprised.gif');"><img src="images/smiley-surprised.gif" width="18" height="18" border="0" /></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="javascript:insertEmotion('smiley-tongue-out.gif');"><img src="images/smiley-tongue-out.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:insertEmotion('smiley-undecided.gif');"><img src="images/smiley-undecided.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:insertEmotion('smiley-wink.gif');"><img src="images/smiley-wink.gif" width="18" height="18" border="0" /></a></td>
|
||||
<td><a href="javascript:insertEmotion('smiley-yell.gif');"><img src="images/smiley-yell.gif" width="18" height="18" border="0" /></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/emotions.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/emotions_1.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
2
www/extras/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.
|
||||
2
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/readme_1.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
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cool.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cool_1.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cry.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cry_1.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-embarassed.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-embarassed_1.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-foot-in-mouth.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-foot-in-mouth_1.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-frown.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-frown_1.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-innocent.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-innocent_1.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-kiss.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-kiss_1.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-laughing.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-laughing_1.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-money-mouth.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-money-mouth_1.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-sealed.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-sealed_1.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-smile.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-smile_1.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-surprised.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-surprised_1.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-tongue-out.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-tongue-out_1.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-undecided.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-undecided_1.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-wink_1.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-yell.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-yell_1.gif
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
4
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/langs/se.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';
|
||||
4
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/langs/se_1.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
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/langs/uk.js
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// UK lang variables
|
||||
|
||||
tinyMCELang['lang_insert_emotions_title'] = 'Insert emotion';
|
||||
tinyMCELang['lang_emotions_desc'] = 'Emotions';
|
||||
|
||||
5
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/langs/uk_1.js
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// UK lang variables
|
||||
|
||||
tinyMCELang['lang_insert_emotions_title'] = 'Insert emotion';
|
||||
tinyMCELang['lang_emotions_desc'] = 'Emotions';
|
||||
|
||||
20
www/extras/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.
|
||||
20
www/extras/tinymce/jscripts/tiny_mce/plugins/emotions/readme_1.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.
|
||||