more tinymce stuff

This commit is contained in:
JT Smith 2005-12-05 15:44:37 +00:00
parent 5a60010a6f
commit b19f4cf952
468 changed files with 11635 additions and 0 deletions

View file

@ -0,0 +1,60 @@
.contextMenuIEPopup {
padding: 0px;
margin: 0px;
border: 0px;
overflow: hidden;
}
.contextMenu {
position: absolute;
cursor: default;
z-index: 1000;
border: 1px solid #D4D0C8;
background-color: #FFFFFF;
}
.contextMenuItem, .contextMenuItemOver {
}
.contextMenuItemOver {
background-color: #B6BDD2;
}
.contextMenuSeparator {
width: 100%;
background-color: #D4D0C8;
border: 0px;
}
.contextMenuImage, .contextMenuItemDisabled {
border: 0px;
}
.contextMenuIcon {
background-color: #F0F0EE;
}
.contextMenuItemOver .contextMenuIcon {
background-color: #B6BDD2;
}
.contextMenuIcon {
background-color: #F0F0EE;
}
.contextMenuItemDisabled img {
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=30);
-moz-opacity:0.3;
opacity: 0.3;
}
.contextMenuText {
font-family: Tahoma, Verdana, Arial, Helvetica;
font-size: 11px;
margin-left: 5px;
margin-right: 10px;
}
.contextMenuItemDisabled {
color: #AAAAAA;
}

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,309 @@
/* Import plugin specific language pack */
//tinyMCE.importPluginLanguagePack('contextmenu', 'en,zh_cn,cs,fa,fr_ca,fr,de,nb');
if (!tinyMCE.settings['contextmenu_skip_plugin_css'])
tinyMCE.loadCSS(tinyMCE.baseURL + "/plugins/contextmenu/css/contextmenu.css");
// Global contextmenu class instance
var TinyMCE_contextmenu_contextMenu = null;
function TinyMCE_contextmenu_getInfo() {
return {
longname : 'Context menus',
author : 'Moxiecode Systems',
authorurl : 'http://tinymce.moxiecode.com',
infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_contextmenu.html',
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
};
};
function TinyMCE_contextmenu_initInstance(inst) {
// Is not working on MSIE 5.0 or Opera no contextmenu event
if (tinyMCE.isMSIE5_0 && tinyMCE.isOpera)
return;
// Add hide event handles
tinyMCE.addEvent(inst.getDoc(), "click", TinyMCE_contextmenu_hideContextMenu);
tinyMCE.addEvent(inst.getDoc(), "keypress", TinyMCE_contextmenu_hideContextMenu);
tinyMCE.addEvent(inst.getDoc(), "keydown", TinyMCE_contextmenu_hideContextMenu);
tinyMCE.addEvent(document, "click", TinyMCE_contextmenu_hideContextMenu);
tinyMCE.addEvent(document, "keypress", TinyMCE_contextmenu_hideContextMenu);
tinyMCE.addEvent(document, "keydown", TinyMCE_contextmenu_hideContextMenu);
var contextMenu = new ContextMenu({
commandhandler : "TinyMCE_contextmenu_commandHandler",
spacer_image : tinyMCE.baseURL + "/plugins/contextmenu/images/spacer.gif"
});
// Register global reference
TinyMCE_contextmenu_contextMenu = contextMenu;
// Attach contextmenu event
if (tinyMCE.isGecko) {
tinyMCE.addEvent(inst.getDoc(), "contextmenu", function(e) {TinyMCE_contextmenu_showContextMenu(tinyMCE.isMSIE ? inst.contentWindow.event : e, inst);});
} else
tinyMCE.addEvent(inst.getDoc(), "contextmenu", TinyMCE_contextmenu_onContextMenu);
}
function TinyMCE_contextmenu_onContextMenu(e) {
var elm = tinyMCE.isMSIE ? e.srcElement : e.target;
var targetInst, body;
// Find instance
if ((body = tinyMCE.getParentElement(elm, "body")) != null) {
for (var n in tinyMCE.instances) {
var inst = tinyMCE.instances[n];
if (!tinyMCE.isInstance(inst))
continue;
if (body == inst.getBody()) {
targetInst = inst;
break;
}
}
return TinyMCE_contextmenu_showContextMenu(tinyMCE.isMSIE ? targetInst.contentWindow.event : e, targetInst);
}
}
function TinyMCE_contextmenu_showContextMenu(e, inst) {
function getAttrib(elm, name) {
return elm.getAttribute(name) ? elm.getAttribute(name) : "";
}
var x, y, elm, contextMenu;
var pos = tinyMCE.getAbsPosition(inst.iframeElement);
x = tinyMCE.isMSIE ? e.screenX : pos.absLeft + (e.pageX - inst.getBody().scrollLeft);
y = tinyMCE.isMSIE ? e.screenY : pos.absTop + (e.pageY - inst.getBody().scrollTop);
elm = tinyMCE.isMSIE ? e.srcElement : e.target;
contextMenu = TinyMCE_contextmenu_contextMenu;
contextMenu.inst = inst;
// Mozilla needs some time
window.setTimeout(function () {
var theme = tinyMCE.getParam("theme");
contextMenu.clearAll();
var sel = inst.getSelectedText().length != 0 || elm.nodeName == "IMG";
// Default items
contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/cut.gif", "$lang_cut_desc", "Cut", "", !sel);
contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/copy.gif", "$lang_copy_desc", "Copy", "", !sel);
contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/paste.gif", "$lang_paste_desc", "Paste", "", false);
// Get element
elm = tinyMCE.getParentElement(elm, "img,table,td");
if (elm) {
switch (elm.nodeName) {
case "IMG":
contextMenu.addSeparator();
// If flash
if (tinyMCE.getAttrib(elm, 'class').indexOf('mceItemFlash') == 0)
contextMenu.addItem(tinyMCE.baseURL + "/plugins/flash/images/flash.gif", "$lang_flash_props", "mceFlash");
else
contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/image.gif", "$lang_image_props_desc", typeof(TinyMCE_advimage_getControlHTML) != "undefined" ? "mceAdvImage" : "mceImage");
break;
case "TABLE":
case "TD":
// Is table plugin loaded
if (typeof(TinyMCE_table_getControlHTML) != "undefined") {
var colspan = (elm.nodeName == "TABLE") ? "" : getAttrib(elm, "colspan");
var rowspan = (elm.nodeName == "TABLE") ? "" : getAttrib(elm, "rowspan");
colspan = colspan == "" ? "1" : colspan;
rowspan = rowspan == "" ? "1" : rowspan;
contextMenu.addSeparator();
contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/cut.gif", "$lang_table_cut_row_desc", "mceTableCutRow");
contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/copy.gif", "$lang_table_copy_row_desc", "mceTableCopyRow");
contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/paste.gif", "$lang_table_paste_row_before_desc", "mceTablePasteRowBefore", "", inst.tableRowClipboard == null);
contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/paste.gif", "$lang_table_paste_row_after_desc", "mceTablePasteRowAfter", "", inst.tableRowClipboard == null);
/* contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/justifyleft.gif", "$lang_justifyleft_desc", "JustifyLeft", "", false);
contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/justifycenter.gif", "$lang_justifycenter_desc", "JustifyCenter", "", false);
contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/justifyright.gif", "$lang_justifyright_desc", "JustifyRight", "", false);
contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/justifyfull.gif", "$lang_justifyfull_desc", "JustifyFull", "", false);*/
contextMenu.addSeparator();
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table.gif", "$lang_table_desc", "mceInsertTable", "insert");
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table.gif", "$lang_table_props_desc", "mceInsertTable");
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_cell_props.gif", "$lang_table_cell_desc", "mceTableCellProps");
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_delete.gif", "$lang_table_del", "mceTableDelete");
contextMenu.addSeparator();
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_row_props.gif", "$lang_table_row_desc", "mceTableRowProps");
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_insert_row_before.gif", "$lang_table_row_before_desc", "mceTableInsertRowBefore");
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_insert_row_after.gif", "$lang_table_row_after_desc", "mceTableInsertRowAfter");
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_delete_row.gif", "$lang_table_delete_row_desc", "mceTableDeleteRow");
contextMenu.addSeparator();
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_insert_col_before.gif", "$lang_table_col_before_desc", "mceTableInsertColBefore");
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_insert_col_after.gif", "$lang_table_col_after_desc", "mceTableInsertColAfter");
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_delete_col.gif", "$lang_table_delete_col_desc", "mceTableDeleteCol");
contextMenu.addSeparator();
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_split_cells.gif", "$lang_table_split_cells_desc", "mceTableSplitCells", "", (colspan == "1" && rowspan == "1"));
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_merge_cells.gif", "$lang_table_merge_cells_desc", "mceTableMergeCells", "", false);
}
break;
}
} else {
// Add table specific
if (typeof(TinyMCE_table_getControlHTML) != "undefined") {
contextMenu.addSeparator();
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table.gif", "$lang_table_desc", "mceInsertTable", "insert");
}
}
contextMenu.show(x, y);
}, 10);
// Cancel default handeling
tinyMCE.cancelEvent(e);
return false;
}
function TinyMCE_contextmenu_hideContextMenu() {
TinyMCE_contextmenu_contextMenu.hide();
}
function TinyMCE_contextmenu_commandHandler(command, value) {
TinyMCE_contextmenu_contextMenu.hide();
// UI must be true on these
var ui = false;
if (command == "mceInsertTable" || command == "mceTableCellProps" || command == "mceTableRowProps" || command == "mceTableMergeCells")
ui = true;
if (command == "Paste")
value = null;
TinyMCE_contextmenu_contextMenu.inst.execCommand(command, ui, value);
}
// Context menu class
function ContextMenu(settings) {
// Default value function
function defParam(key, def_val) {
settings[key] = typeof(settings[key]) != "undefined" ? settings[key] : def_val;
}
var self = this;
this.isMSIE = (navigator.appName == "Microsoft Internet Explorer");
// Setup contextmenu div
this.contextMenuDiv = document.createElement("div");
this.contextMenuDiv.className = "contextMenu";
this.contextMenuDiv.setAttribute("class", "contextMenu");
this.contextMenuDiv.style.display = "none";
this.contextMenuDiv.style.position = 'absolute';
this.contextMenuDiv.style.zindex = 1000;
this.contextMenuDiv.style.left = '0px';
this.contextMenuDiv.style.top = '0px';
this.contextMenuDiv.unselectable = "on";
document.body.appendChild(this.contextMenuDiv);
// Setup default values
defParam("commandhandler", "");
defParam("spacer_image", "images/spacer.gif");
this.items = new Array();
this.settings = settings;
this.html = "";
// IE Popup
if (tinyMCE.isMSIE && !tinyMCE.isMSIE5_0 && !tinyMCE.isOpera) {
this.pop = window.createPopup();
doc = this.pop.document;
doc.open();
doc.write('<html><head><link href="' + tinyMCE.baseURL + '/plugins/contextmenu/css/contextmenu.css" rel="stylesheet" type="text/css" /></head><body unselectable="yes" class="contextMenuIEPopup"></body></html>');
doc.close();
}
};
ContextMenu.prototype.clearAll = function() {
this.html = "";
this.contextMenuDiv.innerHTML = "";
};
ContextMenu.prototype.addSeparator = function() {
this.html += '<tr class="contextMenuItem"><td class="contextMenuIcon"><img src="' + this.settings['spacer_image'] + '" width="20" height="1" class="contextMenuImage" /></td><td><img class="contextMenuSeparator" width="1" height="1" src="' + this.settings['spacer_image'] + '" /></td></tr>';
};
ContextMenu.prototype.addItem = function(icon, title, command, value, disabled) {
if (title.charAt(0) == '$')
title = tinyMCE.getLang(title.substring(1));
var onMouseDown = '';
var html = '';
if (tinyMCE.isMSIE && !tinyMCE.isMSIE5_0)
onMouseDown = 'contextMenu.execCommand(\'' + command + '\', \'' + value + '\');return false;';
else
onMouseDown = this.settings['commandhandler'] + '(\'' + command + '\', \'' + value + '\');return false;';
if (icon == "")
icon = this.settings['spacer_image'];
if (!disabled)
html += '<tr class="contextMenuItem" onmousedown="' + onMouseDown + '" onmouseover="tinyMCE.switchClass(this,\'contextMenuItemOver\');" onmouseout="tinyMCE.switchClass(this,\'contextMenuItem\');">';
else
html += '<tr class="contextMenuItemDisabled">';
html += '<td class="contextMenuIcon"><img src="' + icon + '" width="20" height="20" class="contextMenuImage" /></td>';
html += '<td><div class="contextMenuText">';
// Add text
html += title;
html += '</div></td>';
html += '</tr>';
// Add to main
this.html += html;
};
ContextMenu.prototype.show = function(x, y) {
if (this.html == "")
return;
var html = '';
html += '<table border="0" cellpadding="0" cellspacing="0">';
html += this.html;
html += '</table>';
this.contextMenuDiv.innerHTML = html;
if (tinyMCE.isMSIE && !tinyMCE.isMSIE5_0 && !tinyMCE.isOpera) {
var width, height;
// Get dimensions
this.contextMenuDiv.style.display = "block";
width = this.contextMenuDiv.offsetWidth;
height = this.contextMenuDiv.offsetHeight;
this.contextMenuDiv.style.display = "none";
// Setup popup and show
this.pop.document.body.innerHTML = '<div class="contextMenu">' + html + "</div>";
this.pop.document.tinyMCE = tinyMCE;
this.pop.document.contextMenu = this;
this.pop.show(x, y, width, height);
} else {
this.contextMenuDiv.style.left = x + 'px';
this.contextMenuDiv.style.top = y + 'px';
this.contextMenuDiv.style.display = "block";
}
};
ContextMenu.prototype.hide = function() {
if (tinyMCE.isMSIE && !tinyMCE.isMSIE5_0 && !tinyMCE.isOpera)
this.pop.hide();
else
this.contextMenuDiv.style.display = "none";
};
ContextMenu.prototype.execCommand = function(command, value) {
eval(this.settings['commandhandler'] + "(command, value);");
};

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 B

View file

@ -0,0 +1 @@
Check the TinyMCE documentation for details on this plugin.

View file

@ -0,0 +1 @@
tinyMCE.importPluginLanguagePack('directionality','en,sv,fr_ca,zh_cn,cs,da,he,nb,de,hu,ru,ru_KOI8-R,ru_UTF-8,nn,es,cy,is,pl,nl,fr,pt_br');function TinyMCE_directionality_getInfo(){return{longname:'Directionality',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_directionality.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion};};function TinyMCE_directionality_getControlHTML(control_name){switch(control_name){case "ltr":var cmd='tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceDirectionLTR\');return false;';return '<a href="javascript:'+cmd+'" onclick="'+cmd+'" target="_self" onmousedown="return false;"><img id="{$editor_id}_ltr" src="{$pluginurl}/images/ltr.gif" title="{$lang_directionality_ltr_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" /></a>';case "rtl":var cmd='tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceDirectionRTL\');return false;';return '<a href="javascript:'+cmd+'" onclick="'+cmd+'" target="_self" onmousedown="return false;"><img id="{$editor_id}_rtl" src="{$pluginurl}/images/rtl.gif" title="{$lang_directionality_rtl_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" /></a>';}return "";}function TinyMCE_directionality_execCommand(editor_id,element,command,user_interface,value){switch(command){case "mceDirectionLTR":var inst=tinyMCE.getInstanceById(editor_id);var elm=tinyMCE.getParentElement(inst.getFocusElement(),"p,div,td,h1,h2,h3,h4,h5,h6,pre,address");if(elm)elm.setAttribute("dir","ltr");tinyMCE.triggerNodeChange(false);return true;case "mceDirectionRTL":var inst=tinyMCE.getInstanceById(editor_id);var elm=tinyMCE.getParentElement(inst.getFocusElement(),"p,div,td,h1,h2,h3,h4,h5,h6,pre,address");if(elm)elm.setAttribute("dir","rtl");tinyMCE.triggerNodeChange(false);return true;}return false;}function TinyMCE_directionality_handleNodeChange(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){function getAttrib(elm,name){return elm.getAttribute(name)?elm.getAttribute(name):"";}tinyMCE.switchClassSticky(editor_id+'_ltr','mceButtonNormal',false);tinyMCE.switchClassSticky(editor_id+'_rtl','mceButtonNormal',false);if(node==null)return;var elm=tinyMCE.getParentElement(node,"p,div,td,h1,h2,h3,h4,h5,h6,pre,address");if(!elm){tinyMCE.switchClassSticky(editor_id+'_ltr','mceButtonDisabled',true);tinyMCE.switchClassSticky(editor_id+'_rtl','mceButtonDisabled',true);return;}var dir=getAttrib(elm,"dir");if(dir=="ltr"||dir=="")tinyMCE.switchClassSticky(editor_id+'_ltr','mceButtonSelected',false);else tinyMCE.switchClassSticky(editor_id+'_rtl','mceButtonSelected',false);return true;}

View file

@ -0,0 +1,81 @@
/* Import plugin specific language pack */
tinyMCE.importPluginLanguagePack('directionality', 'en,sv,fr_ca,zh_cn,cs,da,he,nb,de,hu,ru,ru_KOI8-R,ru_UTF-8,nn,es,cy,is,pl,nl,fr,pt_br');
function TinyMCE_directionality_getInfo() {
return {
longname : 'Directionality',
author : 'Moxiecode Systems',
authorurl : 'http://tinymce.moxiecode.com',
infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_directionality.html',
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
};
};
function TinyMCE_directionality_getControlHTML(control_name) {
switch (control_name) {
case "ltr":
var cmd = 'tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceDirectionLTR\');return false;';
return '<a href="javascript:' + cmd + '" onclick="' + cmd + '" target="_self" onmousedown="return false;"><img id="{$editor_id}_ltr" src="{$pluginurl}/images/ltr.gif" title="{$lang_directionality_ltr_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" /></a>';
case "rtl":
var cmd = 'tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceDirectionRTL\');return false;';
return '<a href="javascript:' + cmd + '" onclick="' + cmd + '" target="_self" onmousedown="return false;"><img id="{$editor_id}_rtl" src="{$pluginurl}/images/rtl.gif" title="{$lang_directionality_rtl_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" /></a>';
}
return "";
}
function TinyMCE_directionality_execCommand(editor_id, element, command, user_interface, value) {
// Handle commands
switch (command) {
case "mceDirectionLTR":
var inst = tinyMCE.getInstanceById(editor_id);
var elm = tinyMCE.getParentElement(inst.getFocusElement(), "p,div,td,h1,h2,h3,h4,h5,h6,pre,address");
if (elm)
elm.setAttribute("dir", "ltr");
tinyMCE.triggerNodeChange(false);
return true;
case "mceDirectionRTL":
var inst = tinyMCE.getInstanceById(editor_id);
var elm = tinyMCE.getParentElement(inst.getFocusElement(), "p,div,td,h1,h2,h3,h4,h5,h6,pre,address");
if (elm)
elm.setAttribute("dir", "rtl");
tinyMCE.triggerNodeChange(false);
return true;
}
// Pass to next handler in chain
return false;
}
function TinyMCE_directionality_handleNodeChange(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) {
function getAttrib(elm, name) {
return elm.getAttribute(name) ? elm.getAttribute(name) : "";
}
tinyMCE.switchClassSticky(editor_id + '_ltr', 'mceButtonNormal', false);
tinyMCE.switchClassSticky(editor_id + '_rtl', 'mceButtonNormal', false);
if (node == null)
return;
var elm = tinyMCE.getParentElement(node, "p,div,td,h1,h2,h3,h4,h5,h6,pre,address");
if (!elm) {
tinyMCE.switchClassSticky(editor_id + '_ltr', 'mceButtonDisabled', true);
tinyMCE.switchClassSticky(editor_id + '_rtl', 'mceButtonDisabled', true);
return;
}
var dir = getAttrib(elm, "dir");
if (dir == "ltr" || dir == "")
tinyMCE.switchClassSticky(editor_id + '_ltr', 'mceButtonSelected', false);
else
tinyMCE.switchClassSticky(editor_id + '_rtl', 'mceButtonSelected', false);
return true;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 B

View file

@ -0,0 +1,12 @@
/**
* Czech lang variables
* encoding: utf-8
*
* $Id: cs.js,v 1.1 2005/10/18 13:55:41 spocke Exp $
*/
tinyMCE.addToLang('',{
directionality_ltr_desc : 'Směr z leva doprava',
directionality_rtl_desc : 'Směr z prava doleva'
});

View file

@ -0,0 +1,6 @@
// UK lang variables
tinyMCE.addToLang('',{
directionality_ltr_desc : 'Cyfeiriad chwith i\'r dde',
directionality_rtl_desc : 'Cyfeiriad dde i\'r chwith'
});

View file

@ -0,0 +1,6 @@
// DK lang variables contributed by Jan Moelgaard
tinyMCE.addToLang('',{
directionality_ltr_desc : 'Retning - venstre mod h&#248;jre',
directionality_rtl_desc : 'Retning - h&#248;jre mod venstre'
});

View file

@ -0,0 +1,6 @@
// DE lang variables
tinyMCE.addToLang('',{
directionality_ltr_desc : 'Von links nach rechts',
directionality_rtl_desc : 'Von rechts nach links'
});

View file

@ -0,0 +1,6 @@
// UK lang variables
tinyMCE.addToLang('',{
directionality_ltr_desc : 'Direction left to right',
directionality_rtl_desc : 'Direction right to left'
});

View file

@ -0,0 +1,14 @@
/**
* ES lang variables
*
* Authors : Alvaro Velasco,
* Adolfo Sanz De Diego (asanzdiego) <asanzdiego@yahoo.es>,
* Carlos C Soto (eclipxe) <csoto@sia-solutions.com>
* Last Updated : October 17, 2005
* TinyMCE Version : 2.0RC3
*/
tinyMCE.addToLang('',{
directionality_ltr_desc : 'Dirección de izquierda a derecha',
directionality_rtl_desc : 'Dirección de derecha a izquierda'
});

View file

@ -0,0 +1,6 @@
// Traduit par Normand Lamoureux le 2005-11-12
tinyMCE.addToLang('',{
directionality_ltr_desc : 'Vers la droite',
directionality_rtl_desc : 'Vers la gauche'
});

View file

@ -0,0 +1,6 @@
// fr_ca lang variables
tinyMCE.addToLang('',{
directionality_ltr_desc : 'Direction de la gauche vers la droite',
directionality_rtl_desc : 'Direction de la droite vers la gauche'
});

View file

@ -0,0 +1,6 @@
// HE lang variables by Liron Newman, http://eesh.net
tinyMCE.addToLang('',{
directionality_ltr_desc : 'ëéååï ùîàì ìéîéï',
directionality_rtl_desc : 'ëéååï éîéï ìùîàì'
});

View file

@ -0,0 +1,6 @@
// HU lang variables
tinyMCE.addToLang('',{
directionality_ltr_desc : 'Elhelyezkedés balról jobbra',
directionality_rtl_desc : 'Elhelyezkedés jobbról balra'
});

View file

@ -0,0 +1,6 @@
// Iceland lang variables by Johannes Birgir Jensson
tinyMCE.addToLang('',{
directionality_ltr_desc : 'Fr&aacute; vinstri til h&aelig;gri',
directionality_rtl_desc : 'Fr&aacute; h&aelig;gri til vinstri'
});

View file

@ -0,0 +1,6 @@
// nb = Norwegian (bokm&aring;l) lang variables by Knut B. Jacobsen
tinyMCE.addToLang('',{
directionality_ltr_desc : 'Retning fra venstre mot h&oslash;yre',
directionality_rtl_desc : 'Retning fra h&oslash;yre mot venstre'
});

View file

@ -0,0 +1,6 @@
// NL lang variables
tinyMCE.addToLang('',{
directionality_ltr_desc : 'Richting links naar rechts',
directionality_rtl_desc : 'Richting rechts naar links'
});

View file

@ -0,0 +1,6 @@
// nn = Norwegian (nynorsk) lang variables by Knut B. Jacobsen
tinyMCE.addToLang('',{
directionality_ltr_desc : 'Venstre mot h&oslash;gre',
directionality_rtl_desc : 'H&oslash;gre mot venstre'
});

View file

@ -0,0 +1,8 @@
// PL lang variables
// fixed by Wooya
// http://www.mfusion.prv.pl
tinyMCE.addToLang('',{
directionality_ltr_desc : 'Kierunek od lewej do prawej',
directionality_rtl_desc : 'Kierunek od prawej do lewej'
});

View file

@ -0,0 +1,13 @@
/**
* pt_br lang variables
* Brazilian Portuguese
*
* Authors :
* Marcio Barbosa (mpg) <mpg@mpg.com.br>
* Last Updated : November 26, 2005
* TinyMCE Version : 2.0RC4
*/
tinyMCE.addToLang('',{
directionality_ltr_desc : 'Direcionamento da esquerda para direita',
directionality_rtl_desc : 'Direcionamento da direita para esquerda'
});

View file

@ -0,0 +1,6 @@
// RU lang variables cp1251
tinyMCE.addToLang('',{
directionality_ltr_desc : 'Направление слева направо',
directionality_rtl_desc : 'Направление справа налево'
});

View file

@ -0,0 +1,6 @@
// RU lang variables KOI8-R
tinyMCE.addToLang('',{
directionality_ltr_desc : 'Направление слева направо',
directionality_rtl_desc : 'Направление справа налево'
});

View file

@ -0,0 +1,6 @@
// RU lang variables UTF-8
tinyMCE.addToLang('',{
directionality_ltr_desc : 'Направление слева направо',
directionality_rtl_desc : 'Направление справа налево'
});

View file

@ -0,0 +1,14 @@
/**
* Slovak lang variables
* encoding: utf-8
*
* @author Vladimir VASIL vvasil@post.sk
*
* $Id: sk.js,v 1.1 2005/11/22 20:56:44 spocke Exp $
*/
tinyMCE.addToLang('',{
directionality_ltr_desc : 'Smer z ľava doprava',
directionality_rtl_desc : 'Smer z prava doľava'
});

View file

@ -0,0 +1,6 @@
// SV lang variables
tinyMCE.addToLang('',{
directionality_ltr_desc : 'Riktning fr&aring;n v&auml;nster till h&ouml;ger',
directionality_rtl_desc : 'Riktning fr&aring;n h&ouml;ger till v&auml;nster'
});

View file

@ -0,0 +1,6 @@
// Simplified Chinese lang variables contributed by tom_cat (thomaswangyang@gmail.com)
tinyMCE.addToLang('',{
directionality_ltr_desc : '方向从左往右',
directionality_rtl_desc : '方向从右往左'
});

View file

@ -0,0 +1,7 @@
// Traditional Chinese BIG-5; Twapweb Site translated; twapweb_AT_gmail_DOT_com
// 繁體中文 BIG-5 ;數位應用坊製作; twapweb_AT_gmail_DOT_com
tinyMCE.addToLang('',{
directionality_ltr_desc : '由左往右方向',
directionality_rtl_desc : '由右往左方向'
});

View file

@ -0,0 +1,7 @@
// Traditional Chinese UTF-8; Twapweb Site translated; twapweb_AT_gmail_DOT_com
// 繁體中文 UTF-8 ;數位應用坊製作; twapweb_AT_gmail_DOT_com
tinyMCE.addToLang('',{
directionality_ltr_desc : '由左往右方向',
directionality_rtl_desc : '由右往左方向'
});

View file

@ -0,0 +1 @@
Check the TinyMCE documentation for details on this plugin.

View file

@ -0,0 +1 @@
tinyMCE.importPluginLanguagePack('emotions','en,sv,zh_cn,cs,fa,fr_ca,fr,de,pl,pt_br,nl,da,he,nb,hu,ru,ru_KOI8-R,ru_UTF-8,nn,es,cy,is,zh_tw,zh_tw_utf8,sk');function TinyMCE_emotions_getInfo(){return{longname:'Emotions',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_emotions.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion};};function TinyMCE_emotions_getControlHTML(control_name){switch(control_name){case "emotions":var cmd='tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceEmotion\');return false;';return '<a href="javascript:'+cmd+'" onclick="'+cmd+'" target="_self" onmousedown="return false;"><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\');" /></a>';}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']=160;template['height']=160;template['width']+=tinyMCE.getLang('lang_emotions_delta_width',0);template['height']+=tinyMCE.getLang('lang_emotions_delta_height',0);tinyMCE.openWindow(template,{editor_id:editor_id,inline:"yes"});return true;}return false;}

View file

@ -0,0 +1,51 @@
/* Import plugin specific language pack */
tinyMCE.importPluginLanguagePack('emotions', 'en,sv,zh_cn,cs,fa,fr_ca,fr,de,pl,pt_br,nl,da,he,nb,hu,ru,ru_KOI8-R,ru_UTF-8,nn,es,cy,is,zh_tw,zh_tw_utf8,sk');
function TinyMCE_emotions_getInfo() {
return {
longname : 'Emotions',
author : 'Moxiecode Systems',
authorurl : 'http://tinymce.moxiecode.com',
infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_emotions.html',
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
};
};
/**
* Returns the HTML contents of the emotions control.
*/
function TinyMCE_emotions_getControlHTML(control_name) {
switch (control_name) {
case "emotions":
var cmd = 'tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceEmotion\');return false;';
return '<a href="javascript:' + cmd + '" onclick="' + cmd + '" target="_self" onmousedown="return false;"><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\');" /></a>';
}
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'] = 160;
template['height'] = 160;
// Language specific width and height addons
template['width'] += tinyMCE.getLang('lang_emotions_delta_width', 0);
template['height'] += tinyMCE.getLang('lang_emotions_delta_height', 0);
tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes"});
return true;
}
// Pass to next handler in chain
return false;
}

View file

@ -0,0 +1,40 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$lang_emotions_title}</title>
<script language="javascript" type="text/javascript" src="../../tiny_mce_popup.js"></script>
<script language="javascript" type="text/javascript" src="jscripts/functions.js"></script>
<base target="_self" />
</head>
<body style="display: none">
<div align="center">
<div class="title">{$lang_emotions_title}:<br /><br /></div>
<table border="0" cellspacing="0" cellpadding="4">
<tr>
<td><a href="javascript:insertEmotion('smiley-cool.gif','lang_emotions_cool');"><img src="images/smiley-cool.gif" width="18" height="18" border="0" alt="{$lang_emotions_cool}" title="{$lang_emotions_cool}" /></a></td>
<td><a href="javascript:insertEmotion('smiley-cry.gif','lang_emotions_cry');"><img src="images/smiley-cry.gif" width="18" height="18" border="0" alt="{$lang_emotions_cry}" title="{$lang_emotions_cry}" /></a></td>
<td><a href="javascript:insertEmotion('smiley-embarassed.gif','lang_emotions_embarassed');"><img src="images/smiley-embarassed.gif" width="18" height="18" border="0" alt="{$lang_emotions_embarassed}" title="{$lang_emotions_embarassed}" /></a></td>
<td><a href="javascript:insertEmotion('smiley-foot-in-mouth.gif','lang_emotions_foot_in_mouth');"><img src="images/smiley-foot-in-mouth.gif" width="18" height="18" border="0" alt="{$lang_emotions_foot_in_mouth}" title="{$lang_emotions_foot_in_mouth}" /></a></td>
</tr>
<tr>
<td><a href="javascript:insertEmotion('smiley-frown.gif','lang_emotions_frown');"><img src="images/smiley-frown.gif" width="18" height="18" border="0" alt="{$lang_emotions_frown}" title="{$lang_emotions_frown}" /></a></td>
<td><a href="javascript:insertEmotion('smiley-innocent.gif','lang_emotions_innocent');"><img src="images/smiley-innocent.gif" width="18" height="18" border="0" alt="{$lang_emotions_innocent}" title="{$lang_emotions_innocent}" /></a></td>
<td><a href="javascript:insertEmotion('smiley-kiss.gif','lang_emotions_kiss');"><img src="images/smiley-kiss.gif" width="18" height="18" border="0" alt="{$lang_emotions_kiss}" title="{$lang_emotions_kiss}" /></a></td>
<td><a href="javascript:insertEmotion('smiley-laughing.gif','lang_emotions_laughing');"><img src="images/smiley-laughing.gif" width="18" height="18" border="0" alt="{$lang_emotions_laughing}" title="{$lang_emotions_laughing}" /></a></td>
</tr>
<tr>
<td><a href="javascript:insertEmotion('smiley-money-mouth.gif','lang_emotions_money_mouth');"><img src="images/smiley-money-mouth.gif" width="18" height="18" border="0" alt="{$lang_emotions_money_mouth}" title="{$lang_emotions_money_mouth}" /></a></td>
<td><a href="javascript:insertEmotion('smiley-sealed.gif','lang_emotions_sealed');"><img src="images/smiley-sealed.gif" width="18" height="18" border="0" alt="{$lang_emotions_sealed}" title="{$lang_emotions_sealed}" /></a></td>
<td><a href="javascript:insertEmotion('smiley-smile.gif','lang_emotions_smile');"><img src="images/smiley-smile.gif" width="18" height="18" border="0" alt="{$lang_emotions_smile}" title="{$lang_emotions_smile}" /></a></td>
<td><a href="javascript:insertEmotion('smiley-surprised.gif','lang_emotions_surprised');"><img src="images/smiley-surprised.gif" width="18" height="18" border="0" alt="{$lang_emotions_surprised}" title="{$lang_emotions_surprised}" /></a></td>
</tr>
<tr>
<td><a href="javascript:insertEmotion('smiley-tongue-out.gif','lang_emotions_tongue_out');"><img src="images/smiley-tongue-out.gif" width="18" height="18" border="0" alt="{$lang_emotions_tongue-out}" title="{$lang_emotions_tongue_out}" /></a></td>
<td><a href="javascript:insertEmotion('smiley-undecided.gif','lang_emotions_undecided');"><img src="images/smiley-undecided.gif" width="18" height="18" border="0" alt="{$lang_emotions_undecided}" title="{$lang_emotions_undecided}" /></a></td>
<td><a href="javascript:insertEmotion('smiley-wink.gif','lang_emotions_wink');"><img src="images/smiley-wink.gif" width="18" height="18" border="0" alt="{$lang_emotions_wink}" title="{$lang_emotions_wink}" /></a></td>
<td><a href="javascript:insertEmotion('smiley-yell.gif','lang_emotions_yell');"><img src="images/smiley-yell.gif" width="18" height="18" border="0" alt="{$lang_emotions_yell}" title="{$lang_emotions_yell}" /></a></td>
</tr>
</table>
</div>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 B

View 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.

Binary file not shown.

After

Width:  |  Height:  |  Size: 354 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 329 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 331 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 344 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 340 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 338 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 344 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 325 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 328 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 337 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 351 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 B

View file

@ -0,0 +1,21 @@
function init() {
tinyMCEPopup.resizeToInnerSize();
}
function insertEmotion(file_name, title) {
title = tinyMCE.getLang(title);
if (title == null)
title = "";
// XML encode
title = title.replace(/&/g, '&amp;');
title = title.replace(/\"/g, '&quot;');
title = title.replace(/</g, '&lt;');
title = title.replace(/>/g, '&gr;');
var html = '<img src="' + tinyMCE.baseURL + "/plugins/emotions/images/" + file_name + '" mce_src="' + tinyMCE.baseURL + "/plugins/emotions/images/" + file_name + '" border="0" alt="' + title + '" />';
tinyMCE.execCommand('mceInsertContent', false, html);
tinyMCEPopup.close();
}

View file

@ -0,0 +1,12 @@
/**
* Czech lang variables
* encoding: utf-8
*
* $Id: cs.js,v 1.4 2005/10/18 13:59:42 spocke Exp $
*/
tinyMCE.addToLang('',{
insert_emotions_title : 'Vložit emotikonu',
emotions_desc : 'Emotikony'
});

View file

@ -0,0 +1,22 @@
// UK lang variables
tinyMCE.addToLang('emotions',{
title : 'Mewnosod gwenoglun',
desc : 'Gwenogluniau',
cool : 'C&#373;l',
cry : 'Cr&iuml;o',
embarassed : 'Cywilydd',
foot_in_mouth : 'Troed yn y ceg',
frown : 'Gwgu',
innocent : 'Diniwed',
kiss : 'Sws',
laughing : 'Chwerthin',
money_mouth : 'Ceg arian',
sealed : 'Seliwyd',
smile : 'Gw&ecirc;n',
surprised : 'Synnu',
tongue_out : 'Tafod allan',
undecided : 'Penagored',
wink : 'Winc',
yell : 'Gwaedd'
});

View file

@ -0,0 +1,22 @@
// DK lang variables contributed by Jan Moelgaard
tinyMCE.addToLang('emotions',{
title : 'Inds&#230;t smiley',
desc : 'Smileys',
cool : 'Cool',
cry : 'Gr&#229;d',
embarassed : 'Forlegen',
foot_in_mouth : 'Foden i munden',
frown : 'Rynket pande',
innocent : 'Uskyldig',
kiss : 'Kys',
laughing : 'Latter',
money_mouth : 'L&#230;kker mund',
sealed : 'Lukket af',
smile : 'Smil',
surprised : 'Overrasket',
tongue_out : 'R&#230;k tunge',
undecided : 'Usikker',
wink : 'Blink',
yell : 'R&#229;b'
});

View file

@ -0,0 +1,22 @@
// DE lang variables
tinyMCE.addToLang('emotions',{
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'
});

View file

@ -0,0 +1,6 @@
// Greek lang variables by Jacaranda Bill
tinyMCE.addToLang('',{
insert_emotions_title : '&Aring;éóáãùãÞ &aring;íüò &aring;éêïíé&auml;ßïõ emoticon',
emotions_desc : '&Aring;éêïíß&auml;éá emoticons'
});

View file

@ -0,0 +1,22 @@
// UK lang variables
tinyMCE.addToLang('emotions',{
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'
});

View file

@ -0,0 +1,30 @@
/**
* ES lang variables
*
* Authors : Alvaro Velasco,
* Adolfo Sanz De Diego (asanzdiego) <asanzdiego@yahoo.es>,
* Carlos C Soto (eclipxe) <csoto@sia-solutions.com>
* Last Updated : October 17, 2005
* TinyMCE Version : 2.0RC3
*/
tinyMCE.addToLang('emotions',{
title : 'Intertar emoticono',
desc : 'Emoticonos',
cool : 'Chulo',
cry : 'Llorando',
embarassed : 'Avergonzado',
foot_in_mouth : 'Sin palabras',
frown : 'Triste',
innocent : 'Inocente',
kiss : 'Beso',
laughing : 'Riendo',
money_mouth : 'Forrado',
sealed : 'Boca sellada',
smile : 'Sonriente',
surprised : 'Sorprendido',
tongue_out : 'Burla',
undecided : 'Indeciso',
wink : 'Guiño',
yell : 'Enfadado'
});

View file

@ -0,0 +1,11 @@
// IR lang variables
// Persian (Farsi) language pack (for IRAN)
// By: Morteza Zafari
// Lost@LostLord.com
// http://www.LostLord.com
tinyMCE.addToLang('',{
dir : 'rtl',
insert_emotions_title : '?????? ????',
emotions_desc : '??????'
});

View file

@ -0,0 +1,22 @@
// Traduit par Normand Lamoureux le 2005-11-12
tinyMCE.addToLang('emotions',{
title : 'Choisir une émoticône',
desc : 'Insérer une émoticône',
cool : 'Cool',
cry : 'Triste',
embarassed : 'Embarrassé',
foot_in_mouth : 'Oups !',
frown : 'Mécontent',
innocent : 'Innocent',
kiss : 'Bisou',
laughing : 'Mort de rire',
money_mouth : 'Sencuré',
sealed : 'Motus',
smile : 'Sourire',
surprised : 'Surprise',
tongue_out : 'Moqueur',
undecided : 'Perplexe',
wink : 'Clin d\'oeil',
yell : 'Horreur !'
});

View file

@ -0,0 +1,6 @@
// Canadian French lang variables by Virtuelcom last modification: 2005-06-15
tinyMCE.addToLang('',{
insert_emotions_title : 'Insérer un émoticon',
emotions_desc : 'Émoticons'
});

View file

@ -0,0 +1,22 @@
// HE lang variables
tinyMCE.addToLang('emotions',{
title : 'äëðñ øâùåï',
desc : 'øâùåðéí',
cool : 'øâåò',
cry : 'áåëä',
embarassed : 'ðáåê',
foot_in_mouth : 'òí äøâì áôä',
frown : 'æåòó',
innocent : 'úîéí',
kiss : 'ðùé÷ä',
laughing : 'öåç÷',
money_mouth : 'ôä ùì ëñó',
sealed : 'àèåí',
smile : 'çéåê',
surprised : 'îåôúò',
tongue_out : 'ìùåï áçåõ',
undecided : 'áìúé äçìèé',
wink : '÷øéöä',
yell : 'öò÷ä'
});

View file

@ -0,0 +1,22 @@
// HU lang variables
tinyMCE.addToLang('emotions',{
title : 'Hangulatjel beszúrása',
desc : 'Hangulatjelek',
cool : 'Király',
cry : 'Sírás',
embarassed : 'Zavart',
foot_in_mouth : 'Foot in mouth',
frown : 'Homlokráncolás',
innocent : 'Ártatlan',
kiss : 'Csók',
laughing : 'Nevetés',
money_mouth : 'Pénzéhes',
sealed : 'Elnémult',
smile : 'Mosolygás',
surprised : 'Meglepett',
tongue_out : 'Tongue out',
undecided : 'Határozatlan',
wink : 'Kacsintás',
yell : 'Sikoltás'
});

View file

@ -0,0 +1,22 @@
// Iceland lang variables by Johannes Birgir Jensson
tinyMCE.addToLang('emotions',{
title : 'Tilfinningat&aacute;kn',
desc : 'Tilfinningat&aacute;kn',
cool : 'Svalur',
cry : 'Gr&aacute;ta',
embarassed : 'Sk&ouml;mmustulegur',
foot_in_mouth : 'Tala af s&eacute;r',
frown : 'F&yacute;ldur',
innocent : 'Saklaus',
kiss : 'Koss',
laughing : 'Hl&aelig;jandi',
money_mouth : 'Gr&aacute;&eth;ugur',
sealed : '&THORN;&ouml;gull sem gr&ouml;fin',
smile : 'Brosandi',
surprised : 'Hissa',
tongue_out : 'Ullandi',
undecided : '&Oacute;&aacute;kve&eth;inn',
wink : 'Glottandi',
yell : '&Ouml;skrandi'
});

View file

@ -0,0 +1,6 @@
//IT lang variables
tinyMCE.addToLang('',{
insert_emotions_title : 'Inserisci una emoticon',
emotions_desc : 'Emoticon'
});

View file

@ -0,0 +1,6 @@
// KO lang variables
tinyMCE.addToLang('',{
insert_emotions_title : 'À̸ðƼ&Auml;Ü ³&Ouml;±â',
emotions_desc : 'À̸ðƼ&Auml;Ü'
});

View file

@ -0,0 +1,22 @@
// nb = Norwegian (bokm&aring;l) lang variables by Knut B. Jacobsen
tinyMCE.addToLang('emotions',{
title : 'Lim inn f&oslash;lelse',
desc : 'F&oslash;lelser',
cool : 'Cool',
cry : 'Gr&aring;ter',
embarassed : 'Sjenert',
foot_in_mouth : 'Fot i munnen',
frown : 'Lei seg',
innocent : 'Uskyldig',
kiss : 'Kyss',
laughing : 'Ler',
money_mouth : 'Penger i munnen',
sealed : 'Hemmelig',
smile : 'Glad',
surprised : 'Overrasket',
tongue_out : 'Rekke tunge',
undecided : 'Betenkt',
wink : 'Fl&oslash;rt',
yell : 'Skrikende'
});

View file

@ -0,0 +1,22 @@
// NL lang variables
tinyMCE.addToLang('emotions',{
title : 'Emoticon invoegen',
desc : 'Emoticons',
cool : 'Cool',
cry : 'Huilen',
embarassed : 'Verlegen', // embarrassed
foot_in_mouth : 'Eten in mond', // food in mouth?
frown : 'Fronsen',
innocent : 'Onschuldig',
kiss : 'Kus',
laughing : 'Lachend',
money_mouth : 'Geldgezicht',
sealed : 'Verzegeld',
smile : 'Smile',
surprised : 'Verbaasd',
tongue_out : 'Tong uitstekend',
undecided : 'Obepaald',
wink : 'Knipoog',
yell : 'Schreeuwen'
});

View file

@ -0,0 +1,22 @@
// nn = Norwegian (nynorsk) lang variables by Knut B. Jacobsen
tinyMCE.addToLang('emotions',{
title : 'Lim inn f&oslash;lelse',
desc : 'F&oslash;lelser',
cool : 'Cool',
cry : 'Gr&aring;ter',
embarassed : 'Sjenert',
foot_in_mouth : 'Fot i munnen',
frown : 'Lei seg',
innocent : 'Uskyldig',
kiss : 'Kyss',
laughing : 'Ler',
money_mouth : 'Penger i munnen',
sealed : 'Hemmelig',
smile : 'Glad',
surprised : 'Overrasket',
tongue_out : 'Rekke tunge',
undecided : 'Betenkt',
wink : 'Fl&oslash;rt',
yell : 'Skrikende'
});

View file

@ -0,0 +1,25 @@
// PL lang variables
// fixed by Wooya
// http://www.mfusion.prv.pl
// lemiel 25.10.2005
tinyMCE.addToLang('emotions',{
title : 'Wstaw emotikonkę',
desc : 'Emotikonki',
cool : 'Super',
cry : 'Płaczę',
embarassed : 'Zażenowanie',
foot_in_mouth : 'Trzepię jęzorem',
frown : 'Marszczę brew',
innocent : 'Niewinny',
kiss : 'Pocałunek',
laughing : 'Śmiech',
money_mouth : 'Zasady życiowe',
sealed : 'Zaplombowane usta',
smile : 'Uśmiech',
surprised : 'Zaskoczenie',
tongue_out : 'Pokazuję język',
undecided : 'Niezdecydowanie',
wink : 'Perskie oko',
yell : 'Wycie'
});

View file

@ -0,0 +1,29 @@
/**
* pt_br lang variables
* Brazilian Portuguese
*
* Authors :
* Marcio Barbosa (mpg) <mpg@mpg.com.br>
* Last Updated : November 26, 2005
* TinyMCE Version : 2.0RC4
*/
tinyMCE.addToLang('emotions',{
title : 'Inserir Emoticons',
desc : 'Emoticons',
cool : 'Legal',
cry : 'Chorando',
embarassed : 'Embaraçado',
foot_in_mouth : 'Falando asneira',
frown : 'Triste',
innocent : 'Inocente',
kiss : 'Beijo',
laughing : 'Rindo',
money_mouth : 'Interesseiro',
sealed : 'Lábios fechados',
smile : 'Sorriso',
surprised : 'Surpreso',
tongue_out : 'Mostrar a língüa',
undecided : 'Indeciso',
wink : 'Piscar',
yell : 'Grito'
});

View file

@ -0,0 +1,22 @@
// RU lang variables cp1251
tinyMCE.addToLang('emotions',{
title : 'Âñòàâèòü ñìàéëèê',
desc : 'Ñìàéëèêè',
cool : 'Cool',
cry : 'Ïëà÷',
embarassed : 'Embarassed',
foot_in_mouth : 'Foot in mouth',
frown : 'Íàõìóðåííîñòü',
innocent : 'Ñâÿòîé',
kiss : 'Ïîöåëóé',
laughing : 'Ñìåõ',
money_mouth : 'Money mouth',
sealed : 'Çàêëååííûé',
smile : 'Óëûáêà',
surprised : 'Ñþðïðèç',
tongue_out : 'Âûñóíóòûé ÿçûê',
undecided : 'Undecided',
wink : 'Wink',
yell : 'Yell'
});

View file

@ -0,0 +1,22 @@
// RU lang variables KOI8-R
tinyMCE.addToLang('emotions',{
title : '÷ÓÔÁ×ÉÔØ ÓÍÁÊÌÉË',
desc : 'óÍÁÊÌÉËÉ',
cool : 'Cool',
cry : 'ðÌÁÞ',
embarassed : 'Embarassed',
foot_in_mouth : 'Foot in mouth',
frown : 'îÁÈÍÕÒÅÎÎÏÓÔØ',
innocent : 'ó×ÑÔÏÊ',
kiss : 'ðÏÃÅÌÕÊ',
laughing : 'óÍÅÈ',
money_mouth : 'Money mouth',
sealed : 'úÁËÌÅÅÎÎÙÊ',
smile : 'õÌÙÂËÁ',
surprised : 'óÀÒÐÒÉÚ',
tongue_out : '÷ÙÓÕÎÕÔÙÊ ÑÚÙË',
undecided : 'Undecided',
wink : 'Wink',
yell : 'Yell'
});

View file

@ -0,0 +1,22 @@
// RU lang variables UTF-8
tinyMCE.addToLang('emotions',{
title : 'Вставить смайлик',
desc : 'Смайлики',
cool : 'Cool',
cry : 'Плач',
embarassed : 'Embarassed',
foot_in_mouth : 'Foot in mouth',
frown : 'Нахмуренность',
innocent : 'Святой',
kiss : 'Поцелуй',
laughing : 'Смех',
money_mouth : 'Money mouth',
sealed : 'Заклеенный',
smile : 'Улыбка',
surprised : 'Сюрприз',
tongue_out : 'Высунутый язык',
undecided : 'Undecided',
wink : 'Wink',
yell : 'Yell'
});

View file

@ -0,0 +1,14 @@
/**
* Slovak lang variables
* encoding: utf-8
*
* @author Vladimir VASIL vvasil@post.sk
*
* $Id: sk.js,v 1.1 2005/11/22 20:56:44 spocke Exp $
*/
tinyMCE.addToLang('',{
insert_emotions_title : 'Vložiť emotikonu',
emotions_desc : 'Emotikony'
});

View file

@ -0,0 +1,22 @@
// SE lang variables
tinyMCE.addToLang('emotions',{
title : 'Klistra in k&auml;nsla',
desc : 'K&auml;nslor',
cool : 'Cool',
cry : 'Gr&aring;ter',
embarassed : 'Generad',
foot_in_mouth : 'Fot i munnnen',
frown : 'Ledsen',
innocent : 'Oskyldig',
kiss : 'Kyss',
laughing : 'Skrattande',
money_mouth : 'Penga mun',
sealed : 'Hemlis',
smile : 'Glad',
surprised : 'F&ouml;rv&aring;nad',
tongue_out : 'R&auml;cka ut tungan',
undecided : 'Fundersam',
wink : 'Fl&ouml;rt',
yell : 'Skrikandes'
});

View file

@ -0,0 +1,22 @@
// Simplified Chinese lang variables contributed by tom_cat (thomaswangyang@gmail.com)
tinyMCE.addToLang('emotions',{
title : '²åÈë±íÇé',
desc : '񡀂',
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'
});

View file

@ -0,0 +1,23 @@
// Traditional Chinese BIG-5; Twapweb Site translated; twapweb_AT_gmail_DOT_com
// 繁體中文 BIG-5 ;數位應用坊製作; twapweb_AT_gmail_DOT_com
tinyMCE.addToLang('emotions',{
title : '插入表情圖示',
desc : '表情圖示',
cool : '酷喔',
cry : '大哭',
embarassed : '好糗呀',
foot_in_mouth : '臭死了',
frown : '哼!懶得理你',
innocent : '我是無辜的',
kiss : '親一個',
laughing : '太可笑嘍',
money_mouth : '好高興喔',
sealed : '閉嘴',
smile : '微笑',
surprised : '驚訝',
tongue_out : '吐舌頭',
undecided : '我想想',
wink : '眨眼',
yell : '衰死了~~'
});

View file

@ -0,0 +1,23 @@
// Traditional Chinese UTF-8; Twapweb Site translated; twapweb_AT_gmail_DOT_com
// 繁體中文 UTF-8 ;數位應用坊製作; twapweb_AT_gmail_DOT_com
tinyMCE.addToLang('emotions',{
title : '插入表情圖示',
desc : '表情圖示',
cool : '酷喔',
cry : '大哭',
embarassed : '好糗呀',
foot_in_mouth : '臭死了',
frown : '哼!懶得理你',
innocent : '我是無辜的',
kiss : '親一個',
laughing : '太可笑嘍',
money_mouth : '好高興喔',
sealed : '閉嘴',
smile : '微笑',
surprised : '驚訝',
tongue_out : '吐舌頭',
undecided : '我想想',
wink : '眨眼',
yell : '衰死了~~'
});

View file

@ -0,0 +1 @@
Check the TinyMCE documentation for details on this plugin.

View file

@ -0,0 +1,7 @@
.mceItemFlash {
border: 1px dotted #cc0000;
background-image: url('../images/flash.gif');
background-position: center;
background-repeat: no-repeat;
background-color: #ffffcc;
}

View file

@ -0,0 +1,11 @@
.panel_wrapper div.current {
height: 100px;
}
#width, #height {
width: 50px;
}
#file {
width: 250px;
}

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,270 @@
/* Import plugin specific language pack */
tinyMCE.importPluginLanguagePack('flash', 'en,de,sv,zh_cn,cs,fa,fr_ca,fr,pl,pt_br,nl,da,he,nb,hu,ru,ru_KOI8-R,ru_UTF-8,nn,es,cy,is,zh_tw,zh_tw_utf8,sk,pt_br');
function TinyMCE_flash_getInfo() {
return {
longname : 'Flash',
author : 'Moxiecode Systems',
authorurl : 'http://tinymce.moxiecode.com',
infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_flash.html',
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
};
};
function TinyMCE_flash_initInstance(inst) {
if (!tinyMCE.settings['flash_skip_plugin_css'])
tinyMCE.importCSS(inst.getDoc(), tinyMCE.baseURL + "/plugins/flash/css/content.css");
}
function TinyMCE_flash_getControlHTML(control_name) {
switch (control_name) {
case "flash":
var cmd = 'tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceFlash\');return false;';
return '<a href="javascript:' + cmd + '" onclick="' + cmd + '" target="_self" onmousedown="return false;"><img id="{$editor_id}_flash" src="{$pluginurl}/images/flash.gif" title="{$lang_flash_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" /></a>';
}
return "";
}
function TinyMCE_flash_parseAttributes(attribute_string) {
var attributeName = "";
var attributeValue = "";
var withInName;
var withInValue;
var attributes = new Array();
var whiteSpaceRegExp = new RegExp('^[ \n\r\t]+', 'g');
if (attribute_string == null || attribute_string.length < 2)
return null;
withInName = withInValue = false;
for (var i=0; i<attribute_string.length; i++) {
var chr = attribute_string.charAt(i);
if ((chr == '"' || chr == "'") && !withInValue)
withInValue = true;
else if ((chr == '"' || chr == "'") && withInValue) {
withInValue = false;
var pos = attributeName.lastIndexOf(' ');
if (pos != -1)
attributeName = attributeName.substring(pos+1);
attributes[attributeName.toLowerCase()] = attributeValue.substring(1);
attributeName = "";
attributeValue = "";
} else if (!whiteSpaceRegExp.test(chr) && !withInName && !withInValue)
withInName = true;
if (chr == '=' && withInName)
withInName = false;
if (withInName)
attributeName += chr;
if (withInValue)
attributeValue += chr;
}
return attributes;
}
function TinyMCE_flash_execCommand(editor_id, element, command, user_interface, value) {
// Handle commands
switch (command) {
case "mceFlash":
var name = "", swffile = "", swfwidth = "", swfheight = "", action = "insert";
var template = new Array();
var inst = tinyMCE.getInstanceById(editor_id);
var focusElm = inst.getFocusElement();
template['file'] = '../../plugins/flash/flash.htm'; // Relative to theme
template['width'] = 430;
template['height'] = 175;
template['width'] += tinyMCE.getLang('lang_flash_delta_width', 0);
template['height'] += tinyMCE.getLang('lang_flash_delta_height', 0);
// Is selection a image
if (focusElm != null && focusElm.nodeName.toLowerCase() == "img") {
name = tinyMCE.getAttrib(focusElm, 'class');
if (name.indexOf('mceItemFlash') == -1) // Not a Flash
return true;
// Get rest of Flash items
swffile = tinyMCE.getAttrib(focusElm, 'alt');
if (tinyMCE.getParam('convert_urls'))
swffile = eval(tinyMCE.settings['urlconverter_callback'] + "(swffile, null, true);");
swfwidth = tinyMCE.getAttrib(focusElm, 'width');
swfheight = tinyMCE.getAttrib(focusElm, 'height');
action = "update";
}
tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes", swffile : swffile, swfwidth : swfwidth, swfheight : swfheight, action : action});
return true;
}
// Pass to next handler in chain
return false;
}
function TinyMCE_flash_cleanup(type, content) {
switch (type) {
case "insert_to_editor_dom":
// Force relative/absolute
if (tinyMCE.getParam('convert_urls')) {
var imgs = content.getElementsByTagName("img");
for (var i=0; i<imgs.length; i++) {
if (tinyMCE.getAttrib(imgs[i], "class") == "mceItemFlash") {
var src = tinyMCE.getAttrib(imgs[i], "alt");
if (tinyMCE.getParam('convert_urls'))
src = eval(tinyMCE.settings['urlconverter_callback'] + "(src, null, true);");
imgs[i].setAttribute('alt', src);
imgs[i].setAttribute('title', src);
}
}
}
break;
case "get_from_editor_dom":
var imgs = content.getElementsByTagName("img");
for (var i=0; i<imgs.length; i++) {
if (tinyMCE.getAttrib(imgs[i], "class") == "mceItemFlash") {
var src = tinyMCE.getAttrib(imgs[i], "alt");
if (tinyMCE.getParam('convert_urls'))
src = eval(tinyMCE.settings['urlconverter_callback'] + "(src, null, true);");
imgs[i].setAttribute('alt', src);
imgs[i].setAttribute('title', src);
}
}
break;
case "insert_to_editor":
var startPos = 0;
var embedList = new Array();
// Fix the embed and object elements
content = content.replace(new RegExp('<[ ]*embed','gi'),'<embed');
content = content.replace(new RegExp('<[ ]*/embed[ ]*>','gi'),'</embed>');
content = content.replace(new RegExp('<[ ]*object','gi'),'<object');
content = content.replace(new RegExp('<[ ]*/object[ ]*>','gi'),'</object>');
// Parse all embed tags
while ((startPos = content.indexOf('<embed', startPos+1)) != -1) {
var endPos = content.indexOf('>', startPos);
var attribs = TinyMCE_flash_parseAttributes(content.substring(startPos + 6, endPos));
embedList[embedList.length] = attribs;
}
// Parse all object tags and replace them with images from the embed data
var index = 0;
while ((startPos = content.indexOf('<object', startPos)) != -1) {
if (index >= embedList.length)
break;
var attribs = embedList[index];
// Find end of object
endPos = content.indexOf('</object>', startPos);
endPos += 9;
// Insert image
var contentAfter = content.substring(endPos);
content = content.substring(0, startPos);
content += '<img width="' + attribs["width"] + '" height="' + attribs["height"] + '"';
content += ' src="' + (tinyMCE.getParam("theme_href") + '/images/spacer.gif') + '" title="' + attribs["src"] + '"';
content += ' alt="' + attribs["src"] + '" class="mceItemFlash" />' + content.substring(endPos);
content += contentAfter;
index++;
startPos++;
}
// Parse all embed tags and replace them with images from the embed data
var index = 0;
while ((startPos = content.indexOf('<embed', startPos)) != -1) {
if (index >= embedList.length)
break;
var attribs = embedList[index];
// Find end of embed
endPos = content.indexOf('>', startPos);
endPos += 9;
// Insert image
var contentAfter = content.substring(endPos);
content = content.substring(0, startPos);
content += '<img width="' + attribs["width"] + '" height="' + attribs["height"] + '"';
content += ' src="' + (tinyMCE.getParam("theme_href") + '/images/spacer.gif') + '" title="' + attribs["src"] + '"';
content += ' alt="' + attribs["src"] + '" class="mceItemFlash" />' + content.substring(endPos);
content += contentAfter;
index++;
startPos++;
}
break;
case "get_from_editor":
// Parse all img tags and replace them with object+embed
var startPos = -1;
while ((startPos = content.indexOf('<img', startPos+1)) != -1) {
var endPos = content.indexOf('/>', startPos);
var attribs = TinyMCE_flash_parseAttributes(content.substring(startPos + 4, endPos));
// Is not flash, skip it
if (attribs['class'] != "mceItemFlash")
continue;
endPos += 2;
var embedHTML = '';
var wmode = tinyMCE.getParam("flash_wmode", "");
var quality = tinyMCE.getParam("flash_quality", "high");
var menu = tinyMCE.getParam("flash_menu", "false");
// Insert object + embed
embedHTML += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
embedHTML += ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"';
embedHTML += ' width="' + attribs["width"] + '" height="' + attribs["height"] + '">';
embedHTML += '<param name="movie" value="' + attribs["title"] + '" />';
embedHTML += '<param name="quality" value="' + quality + '" />';
embedHTML += '<param name="menu" value="' + menu + '" />';
embedHTML += '<param name="wmode" value="' + wmode + '" />';
embedHTML += '<embed src="' + attribs["title"] + '" wmode="' + wmode + '" quality="' + quality + '" menu="' + menu + '" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + attribs["width"] + '" height="' + attribs["height"] + '"></embed></object>';
// Insert embed/object chunk
chunkBefore = content.substring(0, startPos);
chunkAfter = content.substring(endPos);
content = chunkBefore + embedHTML + chunkAfter;
}
break;
}
// Pass through to next handler in chain
return content;
}
function TinyMCE_flash_handleNodeChange(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) {
tinyMCE.switchClassSticky(editor_id + '_flash', 'mceButtonNormal');
if (node == null)
return;
do {
if (node.nodeName.toLowerCase() == "img" && tinyMCE.getAttrib(node, 'class').indexOf('mceItemFlash') == 0)
tinyMCE.switchClassSticky(editor_id + '_flash', 'mceButtonSelected');
} while ((node = node.parentNode));
return true;
}

View file

@ -0,0 +1,70 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$lang_flash_title}</title>
<script language="javascript" type="text/javascript" src="../../tiny_mce_popup.js"></script>
<script language="javascript" type="text/javascript" src="jscripts/flash.js"></script>
<script language="javascript" type="text/javascript" src="../../utils/mctabs.js"></script>
<script language="javascript" type="text/javascript" src="../../utils/form_utils.js"></script>
<link href="css/flash.css" rel="stylesheet" type="text/css" />
<base target="_self" />
</head>
<body onload="tinyMCEPopup.executeOnLoad('init();');" style="display: none">
<form onsubmit="insertFlash();return false;" action="#">
<div class="tabs">
<ul>
<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{$lang_flash_general}</a></span></li>
</ul>
</div>
<div class="panel_wrapper">
<div id="general_panel" class="panel current">
<fieldset>
<legend>{$lang_flash_general}</legend>
<table border="0" cellpadding="4" cellspacing="0">
<tr>
<td nowrap="nowrap"><label for="file">{$lang_flash_file}</label></td>
<td nowrap="nowrap">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input id="file" name="file" type="text" value="" onfocus="this.select();" /></td>
<td id="filebrowsercontainer">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr id="linklistrow">
<td><label for="linklist">{$lang_flash_list}</label></td>
<td id="linklistcontainer">&nbsp;</td>
</tr>
<tr>
<td nowrap="nowrap"><label>{$lang_flash_size}</label></td>
<td nowrap="nowrap">
<input type="text" id="width" name="width" value="" onfocus="this.select();" />
<select name="width2" id="width2" style="width: 50px">
<option value="">px</option>
<option value="%">%</option>
</select>&nbsp;x&nbsp;<input id="height" name="height" type="text" value="" onfocus="this.select();" />
<select name="height2" id="height2" style="width: 50px">
<option value="">px</option>
<option value="%">%</option>
</select>
</td>
</tr>
</table>
</fieldset>
</div>
</div>
<div class="mceActionPanel">
<div style="float: left">
<input type="button" id="insert" name="insert" value="{$lang_insert}" onclick="insertFlash();" />
</div>
<div style="float: right">
<input type="button" id="cancel" name="cancel" value="{$lang_cancel}" onclick="tinyMCEPopup.close();" />
</div>
</div>
</form>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 241 B

View file

@ -0,0 +1,107 @@
var url = tinyMCE.getParam("flash_external_list_url");
if (url != null) {
// Fix relative
if (url.charAt(0) != '/' && url.indexOf('://') == -1)
url = tinyMCE.documentBasePath + "/" + url;
document.write('<sc'+'ript language="javascript" type="text/javascript" src="' + url + '"></sc'+'ript>');
}
function init() {
tinyMCEPopup.resizeToInnerSize();
document.getElementById("filebrowsercontainer").innerHTML = getBrowserHTML('filebrowser','file','flash','flash');
// Image list outsrc
var html = getFlashListHTML('filebrowser','file','flash','flash');
if (html == "")
document.getElementById("linklistrow").style.display = 'none';
else
document.getElementById("linklistcontainer").innerHTML = html;
var formObj = document.forms[0];
var swffile = tinyMCE.getWindowArg('swffile');
var swfwidth = '' + tinyMCE.getWindowArg('swfwidth');
var swfheight = '' + tinyMCE.getWindowArg('swfheight');
if (swfwidth.indexOf('%')!=-1) {
formObj.width2.value = "%";
formObj.width.value = swfwidth.substring(0,swfwidth.length-1);
} else {
formObj.width2.value = "px";
formObj.width.value = swfwidth;
}
if (swfheight.indexOf('%')!=-1) {
formObj.height2.value = "%";
formObj.height.value = swfheight.substring(0,swfheight.length-1);
} else {
formObj.height2.value = "px";
formObj.height.value = swfheight;
}
formObj.file.value = swffile;
formObj.insert.value = tinyMCE.getLang('lang_' + tinyMCE.getWindowArg('action'), 'Insert', true);
selectByValue(formObj, 'linklist', swffile);
// Handle file browser
if (isVisible('filebrowser'))
document.getElementById('file').style.width = '230px';
// Auto select flash in list
if (typeof(tinyMCEFlashList) != "undefined" && tinyMCEFlashList.length > 0) {
for (var i=0; i<formObj.linklist.length; i++) {
if (formObj.linklist.options[i].value == tinyMCE.getWindowArg('swffile'))
formObj.linklist.options[i].selected = true;
}
}
}
function getFlashListHTML() {
if (typeof(tinyMCEFlashList) != "undefined" && tinyMCEFlashList.length > 0) {
var html = "";
html += '<select id="linklist" name="linklist" style="width: 250px" onfocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="this.form.file.value=this.options[this.selectedIndex].value;">';
html += '<option value="">---</option>';
for (var i=0; i<tinyMCEFlashList.length; i++)
html += '<option value="' + tinyMCEFlashList[i][1] + '">' + tinyMCEFlashList[i][0] + '</option>';
html += '</select>';
return html;
}
return "";
}
function insertFlash() {
var formObj = document.forms[0];
var html = '';
var file = formObj.file.value;
var width = formObj.width.value;
var height = formObj.height.value;
if (formObj.width2.value=='%') {
width = width + '%';
}
if (formObj.height2.value=='%') {
height = height + '%';
}
if (width == "")
width = 100;
if (height == "")
height = 100;
html += ''
+ '<img src="' + (tinyMCE.getParam("theme_href") + "/images/spacer.gif") + '" mce_src="' + (tinyMCE.getParam("theme_href") + "/images/spacer.gif") + '" '
+ 'width="' + width + '" height="' + height + '" '
+ 'border="0" alt="' + file + '" title="' + file + '" class="mceItemFlash" />';
tinyMCEPopup.execCommand("mceInsertContent", true, html);
tinyMCE.selectedInstance.repaint();
tinyMCEPopup.close();
}

View file

@ -0,0 +1,14 @@
/**
* Czech lang variables
* encoding: utf-8
*
* $Id: cs.js,v 1.6 2005/10/18 13:59:42 spocke Exp $
*/
tinyMCE.addToLang('',{
insert_flash : 'Vložit/editovat Flash Movie',
insert_flash_file : 'Flash soubor (.swf)',
insert_flash_size : 'Velikost',
insert_flash_list : 'Seznam',
flash_props : 'Vlastnosti Flash'
});

View file

@ -0,0 +1,11 @@
// UK lang variables
tinyMCE.addToLang('flash',{
title : 'Mewnosod/golygu Ffilm Flash',
desc : 'Mewnosod/golygu Ffilm Flash',
file : 'Ffeil Flash (.swf)',
size : 'Maint',
list : 'Ffeiliau Flash',
props : 'Priodoleddau Flash',
general : 'Cyffredinol'
});

View file

@ -0,0 +1,11 @@
// DK lang variables contributed by Jan Moelgaard
tinyMCE.addToLang('flash',{
title : 'Inds&#230;t / rediger Flash-film',
desc : 'Inds&#230;t / rediger Flash-film',
file : 'Flash-Fil (.swf)',
size : 'St&#248;rrelse',
list : 'Flash filer',
props : 'Flash egenskaber',
general : 'Genererelt'
});

View file

@ -0,0 +1,11 @@
// DE lang variables
tinyMCE.addToLang('flash',{
title : 'Flash-Datei einf&uuml;gen/bearbeiten',
desc : 'Flash-Datei einf&uuml;gen/bearbeiten',
file : 'Flash-Datei (.swf)',
size : 'Gr&ouml;&szlig;e',
list : 'Flash-Dateien',
props : 'Flash-Eigenschaften',
general : 'Allgemein'
});

View file

@ -0,0 +1,11 @@
// UK lang variables
tinyMCE.addToLang('flash',{
title : 'Insert / edit Flash Movie',
desc : 'Insert / edit Flash Movie',
file : 'Flash-File (.swf)',
size : 'Size',
list : 'Flash files',
props : 'Flash properties',
general : 'General'
});

View file

@ -0,0 +1,19 @@
/**
* ES lang variables
*
* Authors : Alvaro Velasco,
* Adolfo Sanz De Diego (asanzdiego) <asanzdiego@yahoo.es>,
* Carlos C Soto (eclipxe) <csoto@sia-solutions.com>
* Last Updated : October 17, 2005
* TinyMCE Version : 2.0RC3
*/
tinyMCE.addToLang('flash',{
title : 'Insertar / editar pelicula Flash',
desc : 'Insert / edit Flash Movie',
file : 'Fichero Flash (.swf)',
size : 'Tamaño',
list : 'Ficheros Flash',
props : 'Propiedades del Flash',
general : 'General'
});

View file

@ -0,0 +1,13 @@
// IR lang variables
// Persian (Farsi) language pack (for IRAN)
// By: Morteza Zafari
// Lost@LostLord.com
// http://www.LostLord.com
tinyMCE.addToLang('',{
dir : 'rtl',
insert_flash : '?????? ? ?????? ???? ???',
insert_flash_file : '???? ??? (.swf)',
insert_flash_size : '?????',
flash_props : 'Flash properties'
});

View file

@ -0,0 +1,11 @@
// Traduit par Normand Lamoureux le 2005-11-12
tinyMCE.addToLang('flash',{
title : 'Gestionnaire d\'animation Flash',
desc : 'Insérer une animation Flash',
file : 'Fichier Flash (.swf)',
size : 'Taille',
list : 'Fichiers Flash',
props : 'Propriétés Flash',
general : 'Général'
});

Some files were not shown because too many files have changed in this diff Show more