Big JS move
git-svn-id: http://svn.automattic.com/wordpress/trunk@2812 1a063a9b-81f0-0310-95a4-ce76da25c4cd
60
wp-includes/js/tinymce/plugins/contextmenu/contextmenu.css
Normal 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;
|
||||
}
|
||||
292
wp-includes/js/tinymce/plugins/contextmenu/editor_plugin_src.js
Normal file
@@ -0,0 +1,292 @@
|
||||
/* Import plugin specific language pack */
|
||||
//tinyMCE.importPluginLanguagePack('contextmenu', 'en,zh_cn,cs,fa,fr_ca,fr,de');
|
||||
if (!tinyMCE.settings['contextmenu_skip_plugin_css'])
|
||||
tinyMCE.loadCSS(tinyMCE.baseURL + "/plugins/contextmenu/contextmenu.css");
|
||||
|
||||
// Global contextmenu class instance
|
||||
var TinyMCE_contextmenu_contextMenu = null;
|
||||
|
||||
function TinyMCE_contextmenu_initInstance(inst) {
|
||||
// Is not working on MSIE 5.0
|
||||
if (tinyMCE.isMSIE5_0)
|
||||
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 (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, 'name', '').indexOf('mce_plugin_flash') == 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", "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/left.gif", "$lang_justifyleft_desc", "JustifyLeft", "", false);
|
||||
contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/center.gif", "$lang_justifycenter_desc", "JustifyCenter", "", false);
|
||||
contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/right.gif", "$lang_justifyright_desc", "JustifyRight", "", false);
|
||||
contextMenu.addItem(tinyMCE.baseURL + "/themes/" + theme + "/images/full.gif", "$lang_justifyfull_desc", "JustifyFull", "", false);*/
|
||||
contextMenu.addSeparator();
|
||||
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table.gif", "$lang_table_insert_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.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_insert_row_before_desc", "mceTableInsertRowBefore");
|
||||
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_insert_row_after.gif", "$lang_table_insert_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_insert_col_before_desc", "mceTableInsertColBefore");
|
||||
contextMenu.addItem(tinyMCE.baseURL + "/plugins/table/images/table_insert_col_after.gif", "$lang_table_insert_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;
|
||||
}
|
||||
}
|
||||
|
||||
contextMenu.show(x, y);
|
||||
}, 10);
|
||||
|
||||
// Cancel default handeling
|
||||
tinyMCE.cancelEvent(e);
|
||||
return false;
|
||||
}
|
||||
|
||||
function TinyMCE_contextmenu_hideContextMenu() {
|
||||
TinyMCE_contextmenu_contextMenu.hide();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
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) {
|
||||
this.pop = window.createPopup();
|
||||
doc = this.pop.document;
|
||||
doc.open();
|
||||
doc.write('<html><head><link href="' + tinyMCE.baseURL + '/plugins/contextmenu/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) {
|
||||
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)
|
||||
this.pop.hide();
|
||||
else
|
||||
this.contextMenuDiv.style.display = "none";
|
||||
};
|
||||
|
||||
ContextMenu.prototype.execCommand = function(command, value) {
|
||||
eval(this.settings['commandhandler'] + "(command, value);");
|
||||
};
|
||||
BIN
wp-includes/js/tinymce/plugins/contextmenu/images/spacer.gif
Normal file
|
After Width: | Height: | Size: 43 B |
1
wp-includes/js/tinymce/plugins/contextmenu/readme.txt
Normal file
@@ -0,0 +1 @@
|
||||
Check the TinyMCE documentation for details on this plugin.
|
||||
2
wp-includes/js/tinymce/plugins/emotions/editor_plugin.js
Normal file
@@ -0,0 +1,2 @@
|
||||
/* Import plugin specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('emotions','en,sv,zh_cn,cs,fa,fr_ca,fr,de,pl,pt_br,nl');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\');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
wp-includes/js/tinymce/plugins/emotions/editor_plugin_src.js
Normal file
@@ -0,0 +1,36 @@
|
||||
/* Import plugin specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('emotions', 'en,sv,zh_cn,cs,fa,fr_ca,fr,de,pl,pt_br,nl');
|
||||
|
||||
/**
|
||||
* 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\');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
wp-includes/js/tinymce/plugins/emotions/emotions.htm
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="">
|
||||
<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
wp-includes/js/tinymce/plugins/emotions/images/emotions.gif
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
@@ -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
wp-includes/js/tinymce/plugins/emotions/images/smiley-cool.gif
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
wp-includes/js/tinymce/plugins/emotions/images/smiley-cry.gif
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
BIN
wp-includes/js/tinymce/plugins/emotions/images/smiley-frown.gif
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
BIN
wp-includes/js/tinymce/plugins/emotions/images/smiley-kiss.gif
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
BIN
wp-includes/js/tinymce/plugins/emotions/images/smiley-sealed.gif
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
wp-includes/js/tinymce/plugins/emotions/images/smiley-smile.gif
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
BIN
wp-includes/js/tinymce/plugins/emotions/images/smiley-wink.gif
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
wp-includes/js/tinymce/plugins/emotions/images/smiley-yell.gif
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
4
wp-includes/js/tinymce/plugins/emotions/langs/cs.js
Normal file
@@ -0,0 +1,4 @@
|
||||
// UK lang variables
|
||||
|
||||
tinyMCELang['lang_insert_emotions_title'] = 'Vlo<6C>it emotikon';
|
||||
tinyMCELang['lang_emotions_desc'] = 'Emotikony';
|
||||
6
wp-includes/js/tinymce/plugins/emotions/langs/de.js
Normal file
@@ -0,0 +1,6 @@
|
||||
// DE lang variables
|
||||
|
||||
|
||||
tinyMCELang['lang_insert_emotions_title'] = 'Emotion einfügen';
|
||||
tinyMCELang['lang_emotions_desc'] = 'Emotion';
|
||||
|
||||
5
wp-includes/js/tinymce/plugins/emotions/langs/el.js
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
wp-includes/js/tinymce/plugins/emotions/langs/en.js
Normal file
@@ -0,0 +1,5 @@
|
||||
// UK lang variables
|
||||
|
||||
tinyMCELang['lang_insert_emotions_title'] = 'Insert emotion';
|
||||
tinyMCELang['lang_emotions_desc'] = 'Emotions';
|
||||
|
||||
10
wp-includes/js/tinymce/plugins/emotions/langs/fa.js
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
wp-includes/js/tinymce/plugins/emotions/langs/fr.js
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
wp-includes/js/tinymce/plugins/emotions/langs/fr_ca.js
Normal file
@@ -0,0 +1,5 @@
|
||||
// Canadian French lang variables by Virtuelcom last modification: 2005-06-15
|
||||
|
||||
tinyMCELang['lang_insert_emotions_title'] = 'Ins<6E>rer un <20>moticon';
|
||||
tinyMCELang['lang_emotions_desc'] = '<27>moticons';
|
||||
|
||||
5
wp-includes/js/tinymce/plugins/emotions/langs/it.js
Normal file
@@ -0,0 +1,5 @@
|
||||
//IT lang variables
|
||||
|
||||
tinyMCELang['lang_insert_emotions_title'] = 'Inserisci una emoticon';
|
||||
tinyMCELang['lang_emotions_desc'] = 'Emoticon';
|
||||
|
||||
5
wp-includes/js/tinymce/plugins/emotions/langs/ko.js
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
wp-includes/js/tinymce/plugins/emotions/langs/nl.js
Normal file
@@ -0,0 +1,4 @@
|
||||
// NL lang variables
|
||||
|
||||
tinyMCELang['lang_insert_emotions_title'] = 'Emotion invoegen';
|
||||
tinyMCELang['lang_emotions_desc'] = 'Smilie';
|
||||
4
wp-includes/js/tinymce/plugins/emotions/langs/pl.js
Normal file
@@ -0,0 +1,4 @@
|
||||
// PL lang variables
|
||||
|
||||
tinyMCELang['lang_insert_emotions_title'] = 'Wstaw emtoiconę';
|
||||
tinyMCELang['lang_emotions_desc'] = 'Emtoicony';
|
||||
5
wp-includes/js/tinymce/plugins/emotions/langs/pt_br.js
Normal file
@@ -0,0 +1,5 @@
|
||||
// pt_BR lang variables
|
||||
|
||||
tinyMCELang['lang_insert_emotions_title'] = 'Inserir Emoticon';
|
||||
tinyMCELang['lang_emotions_desc'] = 'Emoticons';
|
||||
|
||||
4
wp-includes/js/tinymce/plugins/emotions/langs/sv.js
Normal file
@@ -0,0 +1,4 @@
|
||||
// SE lang variables
|
||||
|
||||
tinyMCELang['lang_insert_emotions_title'] = 'Klistra in k<>nsla';
|
||||
tinyMCELang['lang_emotions_desc'] = 'K<>nslor';
|
||||
6
wp-includes/js/tinymce/plugins/emotions/langs/zh_cn.js
Normal file
@@ -0,0 +1,6 @@
|
||||
// Simplified Chinese lang variables contributed by cube316 (cube316@gmail.com)
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> http://www.cube316.net/ <20>Ի<EFBFBD>ȡTinyMCE<43><45><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֧<EFBFBD><D6A7>
|
||||
|
||||
tinyMCELang['lang_insert_emotions_title'] = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
||||
tinyMCELang['lang_emotions_desc'] = '<27><><EFBFBD><EFBFBD>';
|
||||
|
||||
1
wp-includes/js/tinymce/plugins/emotions/readme.txt
Normal file
@@ -0,0 +1 @@
|
||||
Check the TinyMCE documentation for details on this plugin.
|
||||
2
wp-includes/js/tinymce/plugins/iespell/editor_plugin.js
Normal file
@@ -0,0 +1,2 @@
|
||||
/* Import plugin specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('iespell','cs,el,en,fr_ca,it,ko,sv,zh_cn,fr,de,pl,pt_br,nl');function TinyMCE_iespell_getControlHTML(control_name){if(control_name=="iespell"&&tinyMCE.isMSIE)return '<img id="{$editor_id}_iespell" src="{$pluginurl}/images/iespell.gif" title="{$lang_iespell_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}\',\'mceIESpell\');">';return "";}function TinyMCE_iespell_execCommand(editor_id,element,command,user_interface,value){if(command=="mceIESpell"){try{var ieSpell=new ActiveXObject("ieSpell.ieSpellExtension");ieSpell.CheckDocumentNode(tinyMCE.getInstanceById(editor_id).contentDocument.documentElement);}catch(e){if(e.number==-2146827859){if(confirm(tinyMCE.getLang("lang_iespell_download","",true)))window.open('http://www.iespell.com/download.php','ieSpellDownload','');}else alert("Error Loading ieSpell: Exception "+e.number);}return true;}return false;}
|
||||
37
wp-includes/js/tinymce/plugins/iespell/editor_plugin_src.js
Normal file
@@ -0,0 +1,37 @@
|
||||
/* Import plugin specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('iespell', 'cs,el,en,fr_ca,it,ko,sv,zh_cn,fr,de,pl,pt_br,nl');
|
||||
|
||||
/**
|
||||
* Returns the HTML contents of the iespell control.
|
||||
*/
|
||||
function TinyMCE_iespell_getControlHTML(control_name) {
|
||||
// Is it the iespell control and is the brower MSIE.
|
||||
if (control_name == "iespell" && tinyMCE.isMSIE)
|
||||
return '<img id="{$editor_id}_iespell" src="{$pluginurl}/images/iespell.gif" title="{$lang_iespell_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}\',\'mceIESpell\');">';
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes the mceIESpell command.
|
||||
*/
|
||||
function TinyMCE_iespell_execCommand(editor_id, element, command, user_interface, value) {
|
||||
// Handle ieSpellCommand
|
||||
if (command == "mceIESpell") {
|
||||
try {
|
||||
var ieSpell = new ActiveXObject("ieSpell.ieSpellExtension");
|
||||
ieSpell.CheckDocumentNode(tinyMCE.getInstanceById(editor_id).contentDocument.documentElement);
|
||||
} catch (e) {
|
||||
if (e.number == -2146827859) {
|
||||
if (confirm(tinyMCE.getLang("lang_iespell_download", "", true)))
|
||||
window.open('http://www.iespell.com/download.php', 'ieSpellDownload', '');
|
||||
} else
|
||||
alert("Error Loading ieSpell: Exception " + e.number);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Pass to next handler in chain
|
||||
return false;
|
||||
}
|
||||
BIN
wp-includes/js/tinymce/plugins/iespell/images/iespell.gif
Normal file
|
After Width: | Height: | Size: 151 B |
4
wp-includes/js/tinymce/plugins/iespell/langs/cs.js
Normal file
@@ -0,0 +1,4 @@
|
||||
// UK lang variables
|
||||
|
||||
tinyMCELang['lang_iespell_desc'] = 'Spustit kontrolu pravopisu';
|
||||
tinyMCELang['lang_iespell_download'] = "ieSpell nedetekov<6F>n. Klikn<6B>te na OK a otev<65>ete stahovac<61> str<74>nku."
|
||||
4
wp-includes/js/tinymce/plugins/iespell/langs/de.js
Normal file
@@ -0,0 +1,4 @@
|
||||
// DE lang variables by Tobias Heer
|
||||
|
||||
tinyMCELang['lang_iespell_desc'] = 'Rechtschreibprüfung';
|
||||
tinyMCELang['lang_iespell_download'] = "ieSpell nicht gefunden. Klicken Sie OK um auf die Download Seite zu gelangen."
|
||||
4
wp-includes/js/tinymce/plugins/iespell/langs/el.js
Normal file
@@ -0,0 +1,4 @@
|
||||
// Greek lang variables by Jacaranda Bill
|
||||
|
||||
tinyMCELang['lang_iespell_desc'] = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
||||
tinyMCELang['lang_iespell_download'] = "<22><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ieSpell <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> OK <20><><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>."
|
||||
4
wp-includes/js/tinymce/plugins/iespell/langs/en.js
Normal file
@@ -0,0 +1,4 @@
|
||||
// UK lang variables
|
||||
|
||||
tinyMCELang['lang_iespell_desc'] = 'Run spell checking';
|
||||
tinyMCELang['lang_iespell_download'] = "ieSpell not detected. Click OK to go to download page."
|
||||
4
wp-includes/js/tinymce/plugins/iespell/langs/fr.js
Normal file
@@ -0,0 +1,4 @@
|
||||
// French lang variables by Laurent Dran
|
||||
|
||||
tinyMCELang['lang_iespell_desc'] = 'Executer le vérificateur d\'orthographe';
|
||||
tinyMCELang['lang_iespell_download'] = "ieSpell n\'a pas été trouvé. Cliquez sur OK pour aller au site de téléchargement."
|
||||
4
wp-includes/js/tinymce/plugins/iespell/langs/fr_ca.js
Normal file
@@ -0,0 +1,4 @@
|
||||
// Canadian French lang variables by Virtuelcom last modification: 2005-06-15
|
||||
|
||||
tinyMCELang['lang_iespell_desc'] = 'Executer le v<>rificateur d\'orthographe';
|
||||
tinyMCELang['lang_iespell_download'] = "ieSpell n\'a pas <20>t<EFBFBD> trouv<75>. Cliquez sur OK pour aller au site de t<>l<EFBFBD>chargement.";
|
||||
4
wp-includes/js/tinymce/plugins/iespell/langs/it.js
Normal file
@@ -0,0 +1,4 @@
|
||||
// IT lang variables
|
||||
|
||||
tinyMCELang['lang_iespell_desc'] = 'Avvia il controllo ortografico';
|
||||
tinyMCELang['lang_iespell_download'] = "ieSpell non trovato. Clicca OK per andare alla pagina di download."
|
||||
4
wp-includes/js/tinymce/plugins/iespell/langs/ko.js
Normal file
@@ -0,0 +1,4 @@
|
||||
// KO lang variables
|
||||
|
||||
tinyMCELang['lang_iespell_desc'] = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD> <20><><EFBFBD><EFBFBD>';
|
||||
tinyMCELang['lang_iespell_download'] = "ieSpell<6C><6C> ã<><C3A3> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>. OK<4F><4B> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٿ<EFBFBD><D9BF>ε<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>̵<EFBFBD><CCB5>մϴ<D5B4>."
|
||||
4
wp-includes/js/tinymce/plugins/iespell/langs/nl.js
Normal file
@@ -0,0 +1,4 @@
|
||||
// NL lang variables
|
||||
|
||||
tinyMCELang['lang_iespell_desc'] = 'Spelling checker';
|
||||
tinyMCELang['lang_iespell_download'] = "ieSpell niet gedetecteerd. Klik OK om naar de download pagina te gaan."
|
||||
4
wp-includes/js/tinymce/plugins/iespell/langs/pl.js
Normal file
@@ -0,0 +1,4 @@
|
||||
// PL lang variables
|
||||
|
||||
tinyMCELang['lang_iespell_desc'] = 'Uruchom sprawdzanie pisowni';
|
||||
tinyMCELang['lang_iespell_download'] = "Nie wykryto pluginu, kliknij aby przejść do strony z pluginami."
|
||||
4
wp-includes/js/tinymce/plugins/iespell/langs/pt_br.js
Normal file
@@ -0,0 +1,4 @@
|
||||
// pt_BR lang variables
|
||||
|
||||
tinyMCELang['lang_iespell_desc'] = 'Executar verifica<63><61>o ortogr<67>fica';
|
||||
tinyMCELang['lang_iespell_download'] = "Verificador ieSpell n<>o detectado. Click OK para ir <20> p<>gina de download."
|
||||
4
wp-includes/js/tinymce/plugins/iespell/langs/sv.js
Normal file
@@ -0,0 +1,4 @@
|
||||
// SE lang variables
|
||||
|
||||
tinyMCELang['lang_iespell_desc'] = 'K<>r r<>ttstavningskontroll';
|
||||
tinyMCELang['lang_iespell_download'] = "ieSpell verkar inte vara installerad. Klicka OK för att ladda hem."
|
||||
5
wp-includes/js/tinymce/plugins/iespell/langs/zh_cn.js
Normal file
@@ -0,0 +1,5 @@
|
||||
// Simplified Chinese lang variables contributed by cube316 (cube316@gmail.com)
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> http://www.cube316.net/ <20>Ի<EFBFBD>ȡTinyMCE<43><45><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֧<EFBFBD><D6A7>
|
||||
|
||||
tinyMCELang['lang_iespell_desc'] = '<27><><EFBFBD><EFBFBD>ƴд<C6B4><D0B4><EFBFBD><EFBFBD>';
|
||||
tinyMCELang['lang_iespell_download'] = "δ<><CEB4><EFBFBD>ieSpellƴд<C6B4><D0B4><EFBFBD>飬<EFBFBD><E9A3AC><EFBFBD><EFBFBD> OK ǰ<><C7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҳ<EFBFBD>档"
|
||||
1
wp-includes/js/tinymce/plugins/iespell/readme.txt
Normal file
@@ -0,0 +1 @@
|
||||
Check the TinyMCE documentation for details on this plugin.
|
||||
2
wp-includes/js/tinymce/plugins/preview/editor_plugin.js
Normal file
@@ -0,0 +1,2 @@
|
||||
/* Import plugin specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('preview','cs,de,el,en,fr_ca,it,ko,pt,sv,zh_cn,fa,fr,pl,pt_br,nl');function TinyMCE_preview_getControlHTML(control_name){switch(control_name){case "preview":return '<img id="{$editor_id}_preview" src="{$pluginurl}/images/preview.gif" title="{$lang_preview_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}\',\'mcePreview\');" />';}return "";}function TinyMCE_preview_execCommand(editor_id,element,command,user_interface,value){switch(command){case "mcePreview":var previewPage=tinyMCE.getParam("plugin_preview_pageurl",null);var previewWidth=tinyMCE.getParam("plugin_preview_width","550");var previewHeight=tinyMCE.getParam("plugin_preview_height","600");if(previewPage){var template=new Array();template['file']=previewPage;template['width']=previewWidth;template['height']=previewHeight;tinyMCE.openWindow(template,{editor_id:editor_id,resizable:"yes",scrollbars:"yes",content:tinyMCE.getContent(),content_css:tinyMCE.getParam("content_css")});}else{var win=window.open("","mcePreview","menubar=no,toolbar=no,scrollbars=yes,resizable=yes,left=20,top=20,width="+previewWidth+",height="+previewHeight);var html="";html+='<!doctype html public "-//w3c//dtd html 4.0 transitional//en">';html+='<html>';html+='<head>';html+='<title>'+tinyMCE.getLang('lang_preview_desc')+'</title>';html+='<base href="'+tinyMCE.getParam("document_base_url")+'">';html+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">';html+='<link href="'+tinyMCE.getParam("content_css")+'" rel="stylesheet" type="text/css">';html+='</head>';html+='<body>';html+=tinyMCE.getContent();html+='</body>';html+='</html>';win.document.write(html);win.document.close();}return true;}return false;}
|
||||
62
wp-includes/js/tinymce/plugins/preview/editor_plugin_src.js
Normal file
@@ -0,0 +1,62 @@
|
||||
/* Import plugin specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('preview', 'cs,de,el,en,fr_ca,it,ko,pt,sv,zh_cn,fa,fr,pl,pt_br,nl');
|
||||
|
||||
/**
|
||||
* Returns the HTML contents of the preview control.
|
||||
*/
|
||||
function TinyMCE_preview_getControlHTML(control_name) {
|
||||
switch (control_name) {
|
||||
case "preview":
|
||||
return '<img id="{$editor_id}_preview" src="{$pluginurl}/images/preview.gif" title="{$lang_preview_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}\',\'mcePreview\');" />';
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes the mcePreview command.
|
||||
*/
|
||||
function TinyMCE_preview_execCommand(editor_id, element, command, user_interface, value) {
|
||||
// Handle commands
|
||||
switch (command) {
|
||||
case "mcePreview":
|
||||
var previewPage = tinyMCE.getParam("plugin_preview_pageurl", null);
|
||||
var previewWidth = tinyMCE.getParam("plugin_preview_width", "550");
|
||||
var previewHeight = tinyMCE.getParam("plugin_preview_height", "600");
|
||||
|
||||
// Use a custom preview page
|
||||
if (previewPage) {
|
||||
var template = new Array();
|
||||
|
||||
template['file'] = previewPage;
|
||||
template['width'] = previewWidth;
|
||||
template['height'] = previewHeight;
|
||||
|
||||
tinyMCE.openWindow(template, {editor_id : editor_id, resizable : "yes", scrollbars : "yes", content : tinyMCE.getContent(), content_css : tinyMCE.getParam("content_css")});
|
||||
} else {
|
||||
var win = window.open("", "mcePreview", "menubar=no,toolbar=no,scrollbars=yes,resizable=yes,left=20,top=20,width=" + previewWidth + ",height=" + previewHeight);
|
||||
var html = "";
|
||||
|
||||
html += '<!doctype html public "-//w3c//dtd html 4.0 transitional//en">';
|
||||
html += '<html>';
|
||||
html += '<head>';
|
||||
html += '<title>' + tinyMCE.getLang('lang_preview_desc') + '</title>';
|
||||
html += '<base href="' + tinyMCE.getParam("document_base_url") + '">';
|
||||
html += '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">';
|
||||
html += '<link href="' + tinyMCE.getParam("content_css") + '" rel="stylesheet" type="text/css">';
|
||||
html += '</head>';
|
||||
html += '<body>';
|
||||
html += tinyMCE.getContent();
|
||||
html += '</body>';
|
||||
html += '</html>';
|
||||
|
||||
win.document.write(html);
|
||||
win.document.close();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Pass to next handler in chain
|
||||
return false;
|
||||
}
|
||||
14
wp-includes/js/tinymce/plugins/preview/example.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
|
||||
<html>
|
||||
<head>
|
||||
<script language="javascript" src="../../tiny_mce_popup.js"></script>
|
||||
<title>Example of a custom preview page</title>
|
||||
<link href="{$content_css}" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Editor contents: <br />
|
||||
{$content}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
BIN
wp-includes/js/tinymce/plugins/preview/images/preview.gif
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
3
wp-includes/js/tinymce/plugins/preview/langs/cs.js
Normal file
@@ -0,0 +1,3 @@
|
||||
// UK lang variables
|
||||
|
||||
tinyMCELang['lang_preview_desc'] = 'N<>hled';
|
||||
3
wp-includes/js/tinymce/plugins/preview/langs/de.js
Normal file
@@ -0,0 +1,3 @@
|
||||
// DE lang variables by Tobias Heer
|
||||
|
||||
tinyMCELang['lang_preview_desc'] = 'Vorschau';
|
||||
3
wp-includes/js/tinymce/plugins/preview/langs/el.js
Normal file
@@ -0,0 +1,3 @@
|
||||
// Greek lang variables by Jacaranda Bill
|
||||
|
||||
tinyMCELang['lang_preview_desc'] = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
||||
3
wp-includes/js/tinymce/plugins/preview/langs/en.js
Normal file
@@ -0,0 +1,3 @@
|
||||
// UK lang variables
|
||||
|
||||
tinyMCELang['lang_preview_desc'] = 'Preview';
|
||||
8
wp-includes/js/tinymce/plugins/preview/langs/fa.js
Normal file
@@ -0,0 +1,8 @@
|
||||
// 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_preview_desc'] = 'پیش نمایش';
|
||||
3
wp-includes/js/tinymce/plugins/preview/langs/fr.js
Normal file
@@ -0,0 +1,3 @@
|
||||
// French lang variables by Laurent Dran
|
||||
|
||||
tinyMCELang['lang_preview_desc'] = 'Prévisualisation';
|
||||
3
wp-includes/js/tinymce/plugins/preview/langs/fr_ca.js
Normal file
@@ -0,0 +1,3 @@
|
||||
// Canadian French lang variables by Virtuelcom last modification: 2005-06-15
|
||||
|
||||
tinyMCELang['lang_preview_desc'] = 'Pr<50>visualisation';
|
||||
3
wp-includes/js/tinymce/plugins/preview/langs/it.js
Normal file
@@ -0,0 +1,3 @@
|
||||
// IT lang variables
|
||||
|
||||
tinyMCELang['lang_preview_desc'] = 'Anteprima';
|
||||
3
wp-includes/js/tinymce/plugins/preview/langs/ko.js
Normal file
@@ -0,0 +1,3 @@
|
||||
// KO lang variables
|
||||
|
||||
tinyMCELang['lang_preview_desc'] = '<27≯<EFBFBD><CCB8><EFBFBD><EFBFBD><EFBFBD>';
|
||||
3
wp-includes/js/tinymce/plugins/preview/langs/nl.js
Normal file
@@ -0,0 +1,3 @@
|
||||
// UK lang variables
|
||||
|
||||
tinyMCELang['lang_preview_desc'] = 'Voorbeeld';
|
||||
4
wp-includes/js/tinymce/plugins/preview/langs/pl.js
Normal file
@@ -0,0 +1,4 @@
|
||||
// PL lang variables
|
||||
|
||||
|
||||
tinyMCELang['lang_preview_desc'] = 'Podgląd';
|
||||
3
wp-includes/js/tinymce/plugins/preview/langs/pt.js
Normal file
@@ -0,0 +1,3 @@
|
||||
// UK lang variables
|
||||
|
||||
tinyMCELang['lang_preview_desc'] = 'Pr<50>-visualiza<7A><61>o';
|
||||
3
wp-includes/js/tinymce/plugins/preview/langs/pt_br.js
Normal file
@@ -0,0 +1,3 @@
|
||||
// pt_BR lang variables
|
||||
|
||||
tinyMCELang['lang_preview_desc'] = 'Visualizar';
|
||||
3
wp-includes/js/tinymce/plugins/preview/langs/sv.js
Normal file
@@ -0,0 +1,3 @@
|
||||
// SE lang variables
|
||||
|
||||
tinyMCELang['lang_preview_desc'] = 'F<>rhandsgranska';
|
||||
3
wp-includes/js/tinymce/plugins/preview/langs/zh_cn.js
Normal file
@@ -0,0 +1,3 @@
|
||||
// Simplified Chinese lang variables contributed by cube316 (cube316@etang.com)
|
||||
|
||||
tinyMCELang['lang_preview_desc'] = 'Ԥ<><D4A4>';
|
||||
1
wp-includes/js/tinymce/plugins/preview/readme.txt
Normal file
@@ -0,0 +1 @@
|
||||
Check the TinyMCE documentation for details on this plugin.
|
||||
2
wp-includes/js/tinymce/plugins/save/editor_plugin.js
Normal file
@@ -0,0 +1,2 @@
|
||||
/* Import plugin specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('save','en,zh_cn,cs,fa,fr_ca,fr,de,pl,pt_br,nl');function TinyMCE_save_getControlHTML(control_name){switch(control_name){case "save":return '<img id="{$editor_id}_save" src="{$pluginurl}/images/save.gif" title="{$lang_save_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.switchClass(this,\'mceButtonNormal\');" onmousedown="tinyMCE.switchClass(this,\'mceButtonDown\');" onclick="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceSave\');" />';}return "";}function TinyMCE_save_execCommand(editor_id,element,command,user_interface,value){switch(command){case "mceSave":var formObj=tinyMCE.selectedInstance.formElement.form;if(formObj){tinyMCE.triggerSave();for(var i=0;i<formObj.elements.length;i++){var elementId=formObj.elements[i].name?formObj.elements[i].name:formObj.elements[i].id;if(elementId.indexOf('mce_editor_')==0)formObj.elements[i].disabled=true;}tinyMCE.selectedInstance.formElement.form.submit();}else alert("Error: No form element found.");return true;}return false;}
|
||||
43
wp-includes/js/tinymce/plugins/save/editor_plugin_src.js
Normal file
@@ -0,0 +1,43 @@
|
||||
/* Import plugin specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('save', 'en,zh_cn,cs,fa,fr_ca,fr,de,pl,pt_br,nl');
|
||||
|
||||
/**
|
||||
* Returns the HTML contents of the save control.
|
||||
*/
|
||||
function TinyMCE_save_getControlHTML(control_name) {
|
||||
switch (control_name) {
|
||||
case "save":
|
||||
return '<img id="{$editor_id}_save" src="{$pluginurl}/images/save.gif" title="{$lang_save_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.switchClass(this,\'mceButtonNormal\');" onmousedown="tinyMCE.switchClass(this,\'mceButtonDown\');" onclick="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceSave\');" />';
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes the save command.
|
||||
*/
|
||||
function TinyMCE_save_execCommand(editor_id, element, command, user_interface, value) {
|
||||
// Handle commands
|
||||
switch (command) {
|
||||
case "mceSave":
|
||||
var formObj = tinyMCE.selectedInstance.formElement.form;
|
||||
|
||||
if (formObj) {
|
||||
tinyMCE.triggerSave();
|
||||
|
||||
// Disable all UI form elements that TinyMCE created
|
||||
for (var i=0; i<formObj.elements.length; i++) {
|
||||
var elementId = formObj.elements[i].name ? formObj.elements[i].name : formObj.elements[i].id;
|
||||
|
||||
if (elementId.indexOf('mce_editor_') == 0)
|
||||
formObj.elements[i].disabled = true;
|
||||
}
|
||||
|
||||
tinyMCE.selectedInstance.formElement.form.submit();
|
||||
} else
|
||||
alert("Error: No form element found.");
|
||||
|
||||
return true;
|
||||
}
|
||||
// Pass to next handler in chain
|
||||
return false;
|
||||
}
|
||||
BIN
wp-includes/js/tinymce/plugins/save/images/save.gif
Normal file
|
After Width: | Height: | Size: 1001 B |
3
wp-includes/js/tinymce/plugins/save/langs/cs.js
Normal file
@@ -0,0 +1,3 @@
|
||||
// UK lang variables
|
||||
|
||||
tinyMCELang['lang_save_desc'] = 'Ulo<6C>it';
|
||||
3
wp-includes/js/tinymce/plugins/save/langs/de.js
Normal file
@@ -0,0 +1,3 @@
|
||||
// DE lang variables
|
||||
|
||||
tinyMCELang['lang_save_desc'] = 'Speichern';
|
||||
3
wp-includes/js/tinymce/plugins/save/langs/en.js
Normal file
@@ -0,0 +1,3 @@
|
||||
// UK lang variables
|
||||
|
||||
tinyMCELang['lang_save_desc'] = 'Save';
|
||||
8
wp-includes/js/tinymce/plugins/save/langs/fa.js
Normal file
@@ -0,0 +1,8 @@
|
||||
// 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_save_desc'] = 'ضبط';
|
||||
3
wp-includes/js/tinymce/plugins/save/langs/fr.js
Normal file
@@ -0,0 +1,3 @@
|
||||
// French lang variables by Laurent Dran
|
||||
|
||||
tinyMCELang['lang_save_desc'] = 'Sauver';
|
||||
3
wp-includes/js/tinymce/plugins/save/langs/fr_ca.js
Normal file
@@ -0,0 +1,3 @@
|
||||
// Canadian French lang variables by Virtuelcom last modification: 2005-06-15
|
||||
|
||||
tinyMCELang['lang_save_desc'] = 'Enregistrer';
|
||||
3
wp-includes/js/tinymce/plugins/save/langs/nl.js
Normal file
@@ -0,0 +1,3 @@
|
||||
// UK lang variables
|
||||
|
||||
tinyMCELang['lang_save_desc'] = 'Opslaan';
|
||||
4
wp-includes/js/tinymce/plugins/save/langs/pl.js
Normal file
@@ -0,0 +1,4 @@
|
||||
// PL lang variables
|
||||
|
||||
|
||||
tinyMCELang['lang_save_desc'] = 'Zachowaj';
|
||||
3
wp-includes/js/tinymce/plugins/save/langs/pt_br.js
Normal file
@@ -0,0 +1,3 @@
|
||||
// pt_BR lang variables
|
||||
|
||||
tinyMCELang['lang_save_desc'] = 'Salvar';
|
||||
4
wp-includes/js/tinymce/plugins/save/langs/zh_cn.js
Normal file
@@ -0,0 +1,4 @@
|
||||
// Simplified Chinese lang variables contributed by cube316 (cube316@gmail.com)
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> http://www.cube316.net/ <20>Ի<EFBFBD>ȡTinyMCE<43><45><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֧<EFBFBD><D6A7>
|
||||
|
||||
tinyMCELang['lang_save_desc'] = '<27><><EFBFBD><EFBFBD>';
|
||||
1
wp-includes/js/tinymce/plugins/save/readme.txt
Normal file
@@ -0,0 +1 @@
|
||||
Check the TinyMCE documentation for details on this plugin.
|
||||