upgraded to tinymce 2.0.1

This commit is contained in:
JT Smith 2005-12-05 05:28:30 +00:00
parent 586e1a00fa
commit 75acc465b0
891 changed files with 16251 additions and 18835 deletions

View file

@ -0,0 +1 @@
tinyMCE.importPluginLanguagePack('advhr','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,fi,es,cy,is,zh_tw,zh_tw_utf8,sk');function TinyMCE_advhr_getInfo(){return{longname:'Advanced HR',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_advhr.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion};};function TinyMCE_advhr_getControlHTML(control_name){switch(control_name){case "advhr":var cmd='tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceAdvancedHr\');return false;';return '<a href="javascript:'+cmd+'" onclick="'+cmd+'" target="_self" onmousedown="return false;"><img id="{$editor_id}_advhr" src="{$pluginurl}/images/advhr.gif" title="{$lang_insert_advhr_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_advhr_execCommand(editor_id,element,command,user_interface,value){switch(command){case "mceAdvancedHr":var template=new Array();template['file']='../../plugins/advhr/rule.htm';template['width']=270;template['height']=180;template['width']+=tinyMCE.getLang('lang_advhr_delta_width',0);template['height']+=tinyMCE.getLang('lang_advhr_delta_height',0);var size="",width="",noshade="";if(tinyMCE.selectedElement!=null&&tinyMCE.selectedElement.nodeName.toLowerCase()=="hr"){tinyMCE.hrElement=tinyMCE.selectedElement;if(tinyMCE.hrElement){size=tinyMCE.hrElement.getAttribute('size')?tinyMCE.hrElement.getAttribute('size'):"";width=tinyMCE.hrElement.getAttribute('width')?tinyMCE.hrElement.getAttribute('width'):"";noshade=tinyMCE.hrElement.getAttribute('noshade')?tinyMCE.hrElement.getAttribute('noshade'):"";}tinyMCE.openWindow(template,{editor_id:editor_id,size:size,width:width,noshade:noshade,mceDo:'update'});}else{if(tinyMCE.isMSIE){tinyMCE.execInstanceCommand(editor_id,'mceInsertContent',false,'<hr />');}else{tinyMCE.openWindow(template,{editor_id:editor_id,inline:"yes",size:size,width:width,noshade:noshade,mceDo:'insert'});}}return true;}return false;}function TinyMCE_advhr_handleNodeChange(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){tinyMCE.switchClassSticky(editor_id+'_advhr','mceButtonNormal');if(node==null)return;do{if(node.nodeName.toLowerCase()=="hr")tinyMCE.switchClassSticky(editor_id+'_advhr','mceButtonSelected');}while((node=node.parentNode));return true;}

View file

@ -0,0 +1,75 @@
/* Import plugin specific language pack */
tinyMCE.importPluginLanguagePack('advhr', '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,fi,es,cy,is,zh_tw,zh_tw_utf8,sk');
function TinyMCE_advhr_getInfo() {
return {
longname : 'Advanced HR',
author : 'Moxiecode Systems',
authorurl : 'http://tinymce.moxiecode.com',
infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_advhr.html',
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
};
};
function TinyMCE_advhr_getControlHTML(control_name) {
switch (control_name) {
case "advhr":
var cmd = 'tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceAdvancedHr\');return false;';
return '<a href="javascript:' + cmd + '" onclick="' + cmd + '" target="_self" onmousedown="return false;"><img id="{$editor_id}_advhr" src="{$pluginurl}/images/advhr.gif" title="{$lang_insert_advhr_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 mceAdvanceHr command.
*/
function TinyMCE_advhr_execCommand(editor_id, element, command, user_interface, value) {
// Handle commands
switch (command) {
case "mceAdvancedHr":
var template = new Array();
template['file'] = '../../plugins/advhr/rule.htm'; // Relative to theme
template['width'] = 270;
template['height'] = 180;
template['width'] += tinyMCE.getLang('lang_advhr_delta_width', 0);
template['height'] += tinyMCE.getLang('lang_advhr_delta_height', 0);
var size = "", width = "", noshade = "";
if (tinyMCE.selectedElement != null && tinyMCE.selectedElement.nodeName.toLowerCase() == "hr"){
tinyMCE.hrElement = tinyMCE.selectedElement;
if (tinyMCE.hrElement) {
size = tinyMCE.hrElement.getAttribute('size') ? tinyMCE.hrElement.getAttribute('size') : "";
width = tinyMCE.hrElement.getAttribute('width') ? tinyMCE.hrElement.getAttribute('width') : "";
noshade = tinyMCE.hrElement.getAttribute('noshade') ? tinyMCE.hrElement.getAttribute('noshade') : "";
}
tinyMCE.openWindow(template, {editor_id : editor_id, size : size, width : width, noshade : noshade, mceDo : 'update'});
} else {
if (tinyMCE.isMSIE) {
tinyMCE.execInstanceCommand(editor_id, 'mceInsertContent', false,'<hr />');
} else {
tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes", size : size, width : width, noshade : noshade, mceDo : 'insert'});
}
}
return true;
}
// Pass to next handler in chain
return false;
}
function TinyMCE_advhr_handleNodeChange(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) {
tinyMCE.switchClassSticky(editor_id + '_advhr', 'mceButtonNormal');
if (node == null)
return;
do {
if (node.nodeName.toLowerCase() == "hr")
tinyMCE.switchClassSticky(editor_id + '_advhr', 'mceButtonSelected');
} while ((node = node.parentNode));
return true;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 B

View file

@ -0,0 +1,41 @@
function init() {
var formObj = document.forms[0];
formObj.width.value = tinyMCE.getWindowArg('width');
formObj.size.value = tinyMCE.getWindowArg('size');
formObj.insert.value = tinyMCE.getLang('lang_' + tinyMCE.getWindowArg('mceDo'));
if (tinyMCE.getWindowArg('noshade')) {
formObj.noshade.checked = true;
}
if (tinyMCE.getWindowArg('width').lastIndexOf('%')!=-1) {
formObj.width2.value = "%";
formObj.width.value = formObj.width.value.substring(0,formObj.width.value.length-1);
}
}
function insertHR() {
var formObj = document.forms[0];
var width = formObj.width.value;
var size = formObj.size.value;
var html = '<hr';
if (size!='' && size!=0) {
html += ' size="' + size + '"';
}
if (width!='' && width!=0) {
html += ' width="' + width;
if (formObj.width2.value=='%') {
html += '%';
}
html += '"';
}
if (formObj.noshade.checked==true) {
html += ' noshade="noshade"';
}
html += ' />';
tinyMCEPopup.execCommand("mceInsertContent", true, html);
tinyMCEPopup.close();
}
function cancelAction() {
tinyMCEPopup.close();
}

View file

@ -0,0 +1,14 @@
/**
* Czech lang variables
* encoding: utf-8
*
* $Id: cs.js,v 1.4 2005/10/18 13:59:21 spocke Exp $
*/
tinyMCE.addToLang('',{
insert_advhr_desc : 'Vložit/editovat vodorovný oddělovač',
insert_advhr_width : 'Šířka',
insert_advhr_size : 'Výška',
insert_advhr_noshade : 'Nestínovat'
});

View file

@ -0,0 +1,8 @@
// Welsh lang variables
tinyMCE.addToLang('',{
insert_advhr_desc : 'Mewnosod/golygu llinell llorweddol',
insert_advhr_width : 'Lled',
insert_advhr_size : 'Uchder',
insert_advhr_noshade : 'Dim cysgod'
});

View file

@ -0,0 +1,8 @@
// DK lang variables contributed by Jan Moelgaard
tinyMCE.addToLang('',{
insert_advhr_desc : 'Inds&#230;t / rediger horisontal bj&#230;lke',
insert_advhr_width : 'Bredde',
insert_advhr_size : 'H&#248;jde',
insert_advhr_noshade : 'Ingen skygge'
});

View file

@ -0,0 +1,8 @@
// DE lang variables
tinyMCE.addToLang('',{
insert_advhr_desc : 'Horizontale Linie einf&uuml;gen/bearbeiten',
insert_advhr_width : 'Breite',
insert_advhr_size : 'H&ouml;he',
insert_advhr_noshade : 'Keinen Schatten'
});

View file

@ -0,0 +1,8 @@
// UK lang variables
tinyMCE.addToLang('',{
insert_advhr_desc : 'Insert / edit Horizontale Rule',
insert_advhr_width : 'Width',
insert_advhr_size : 'Height',
insert_advhr_noshade : 'No shadow'
});

View file

@ -0,0 +1,10 @@
// ES lang variables by Alvaro Velasco and Adolfo Sanz De Diego (asanzdiego) <asanzdiego@yahoo.es>
// Last Updated : October 2005
// TinyMCE Version : 2.0RC3
tinyMCE.addToLang('',{
insert_advhr_desc : 'Insertar/Editar Barra Horizontal',
insert_advhr_width : 'Ancho',
insert_advhr_size : 'Alto',
insert_advhr_noshade : 'Sin Sombras'
});

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_advhr_desc : '??? ? ?????? ?? ????',
insert_advhr_width : '???',
insert_advhr_size : '??????',
insert_advhr_noshade : '???? ????'
});

View file

@ -0,0 +1,8 @@
// FI lang variables by Tuomo Aura, Ateco.fi
tinyMCE.addToLang('',{
insert_advhr_desc : 'Lis&auml;&auml; / Muokkaa vaakaviivaa',
insert_advhr_width : 'Leveys',
insert_advhr_size : 'Korkeus',
insert_advhr_noshade : 'Ei varjostusta'
});

View file

@ -0,0 +1,9 @@
// French lang variables by Laurent Dran
// Modifié par Normand Lamoureux le 2005-11-12
tinyMCE.addToLang('',{
insert_advhr_desc : 'Insérer une règle horizontale stylée',
insert_advhr_width : 'Largeur',
insert_advhr_size : 'Hauteur',
insert_advhr_noshade : 'Sans ombre'
});

View file

@ -0,0 +1,8 @@
// CA_FR lang variables
tinyMCE.addToLang('',{
insert_advhr_desc : 'Insérer / Modifier Séparateur Horizontal',
insert_advhr_width : 'Largeur',
insert_advhr_size : 'Hauteur',
insert_advhr_noshade : 'Sans ombrage'
});

View file

@ -0,0 +1,8 @@
// HE lang variables by Liron Newman, http://eesh.net
tinyMCE.addToLang('',{
insert_advhr_desc : 'äëðñ/òøåê ÷å àåô÷é',
insert_advhr_width : 'øåçá',
insert_advhr_size : 'âåáä',
insert_advhr_noshade : 'ììà öì'
});

View file

@ -0,0 +1,8 @@
// HU lang variables
tinyMCE.addToLang('',{
insert_advhr_desc : 'Vízszintes vonal beillesztése / szerkesztése',
insert_advhr_width : 'Hosszúság',
insert_advhr_size : 'Szélesség',
insert_advhr_noshade : 'Nincs árnyék'
});

View file

@ -0,0 +1,8 @@
// Iceland lang variables by Johannes Birgir Jensson
tinyMCE.addToLang('',{
insert_advhr_desc : 'B&aelig;ta vi&eth;/breyta stiku',
insert_advhr_width : 'Breidd',
insert_advhr_size : 'H&aelig;&eth;',
insert_advhr_noshade : 'Enginn skuggi'
});

View file

@ -0,0 +1,8 @@
// nb = Norwegian (bokm&aring;l) lang variables by Knut B. Jacobsen
tinyMCE.addToLang('',{
insert_advhr_desc : 'Lage/Redigere horisontal linje',
insert_advhr_width : 'Bredde',
insert_advhr_size : 'H&oslash;yde',
insert_advhr_noshade : 'Ingen skygge'
});

View file

@ -0,0 +1,8 @@
// NL lang variables
tinyMCE.addToLang('',{
insert_advhr_desc : 'Horizontale lijn invoegen/bewerken',
insert_advhr_width : 'Breedte',
insert_advhr_size : 'Hoogte',
insert_advhr_noshade : 'Geen schaduw'
});

View file

@ -0,0 +1,8 @@
// nn = Norwegian (nynorsk) lang variables by Knut B. Jacobsen
tinyMCE.addToLang('',{
insert_advhr_desc : 'Lage/Redigere horisontal linje',
insert_advhr_width : 'Bredde',
insert_advhr_size : 'H&oslash;gde',
insert_advhr_noshade : 'Ingen skugge'
});

View file

@ -0,0 +1,11 @@
// PL lang variables
// fixed by Wooya
// http://www.mfusion.prv.pl
// fixed by lemiel 14.11.2005
tinyMCE.addToLang('',{
insert_advhr_desc : 'Wstaw/Edytuj poziom± liniê',
insert_advhr_width : 'Szeroko¶æ',
insert_advhr_size : 'Wysoko¶æ',
insert_advhr_noshade : 'Brak cienia'
});

View file

@ -0,0 +1,16 @@
/**
* pt_br lang variables
* Brazilian Portuguese
*
* Authors : ????
* Revision and modifications:
* Marcio Barbosa (mpg) <mpg@mpg.com.br>
* Last Updated : November 26, 2005
* TinyMCE Version : 2.0RC4
*/
tinyMCE.addToLang('',{
insert_advhr_desc : 'Inserir / editar Linha Horizontal',
insert_advhr_width : 'Largura',
insert_advhr_size : 'Altura',
insert_advhr_noshade : 'Sem Sombra'
});

View file

@ -0,0 +1,8 @@
// RU cp1251 lang variables
tinyMCE.addToLang('',{
insert_advhr_desc : 'Âñòàâèòü / ðåäàêòèðîâàòü ãîðèçîíòàëüíûé ðàçäåëèòåëü',
insert_advhr_width : 'Øèðèíà',
insert_advhr_size : 'Âûñîòà',
insert_advhr_noshade : 'Áåç òåíè'
});

View file

@ -0,0 +1,8 @@
// RU KOI8-R lang variables
tinyMCE.addToLang('',{
insert_advhr_desc : '÷ÓÔÁ×ÉÔØ / ÒÅÄÁËÔÉÒÏ×ÁÔØ ÇÏÒÉÚÏÎÔÁÌØÎÙÊ ÒÁÚÄÅÌÉÔÅÌØ',
insert_advhr_width : 'ûÉÒÉÎÁ',
insert_advhr_size : '÷ÙÓÏÔÁ',
insert_advhr_noshade : 'âÅÚ ÔÅÎÉ'
});

View file

@ -0,0 +1,8 @@
// RU UTF-8 lang variables
tinyMCE.addToLang('',{
insert_advhr_desc : 'Вставить / редактировать горизонтальный разделитель',
insert_advhr_width : 'Ширина',
insert_advhr_size : 'Высота',
insert_advhr_noshade : 'Без тени'
});

View file

@ -0,0 +1,16 @@
/**
* Slovak lang variables
* encoding: utf-8
*
* @author Vladimir VASIL vvasil@post.sk
*
* $Id: sk.js,v 1.1 2005/11/22 20:56:43 spocke Exp $
*/
tinyMCE.addToLang('',{
insert_advhr_desc : 'Vložiť/editovať vodorovný oddeľovač',
insert_advhr_width : 'Šírka',
insert_advhr_size : 'Výška',
insert_advhr_noshade : 'Nestieňovať'
});

View file

@ -0,0 +1,8 @@
// SE lang variables
tinyMCE.addToLang('',{
insert_advhr_desc : 'Skapa/Redigera horisontell linje',
insert_advhr_width : 'Bredd',
insert_advhr_size : 'H&ouml;jd',
insert_advhr_noshade : 'Ingen skugga'
});

View file

@ -0,0 +1,8 @@
// Simplified Chinese lang variables contributed by tom_cat (thomaswangyang@gmail.com)
tinyMCE.addToLang('',{
insert_advhr_desc : '插入/编辑 水平标尺',
insert_advhr_width : '宽度',
insert_advhr_size : '高度',
insert_advhr_noshade : '无阴影'
});

View file

@ -0,0 +1,10 @@
// Traditional Chinese BIG-5; Twapweb Site translated; twapweb_AT_gmail_DOT_com
// 繁體中文 BIG-5 ;數位應用坊製作; twapweb_AT_gmail_DOT_com
tinyMCE.addToLang('',{
insert_advhr_desc : '插入或編輯水平線',
insert_advhr_width : '寬',
insert_advhr_size : '高',
insert_advhr_noshade : '無陰影'
});

View file

@ -0,0 +1,10 @@
// Traditional Chinese UTF-8; Twapweb Site translated; twapweb_AT_gmail_DOT_com
// 繁體中文 UTF-8 ;數位應用坊製作; twapweb_AT_gmail_DOT_com
tinyMCE.addToLang('',{
insert_advhr_desc : '插入或編輯水平線',
insert_advhr_width : '寬',
insert_advhr_size : '高',
insert_advhr_noshade : '無陰影'
});

View file

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

View file

@ -0,0 +1,59 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$lang_insert_link_title}</title>
<script language="javascript" type="text/javascript" src="../../tiny_mce_popup.js"></script>
<script language="javascript" type="text/javascript" src="jscripts/rule.js"></script>
<style type="text/css">
<!--
input.radio {
border: 1px none #000000;
background-color: transparent;
vertical-align: middle;
}
-->
</style>
<base target="_self" />
</head>
<body onload="tinyMCEPopup.executeOnLoad('init();');">
<form onsubmit="insertHR();return false;" action="#">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" valign="middle"><table border="0" cellpadding="4" cellspacing="0">
<tr>
<td colspan="2" class="title">{$lang_insert_advhr_desc}</td>
</tr>
<tr>
<td align="right">{$lang_insert_advhr_width}:</td>
<td nowrap="nowrap">
<input name="width" type="text" id="width" value="" style="width: 50px; vertical-align: middle;" />
<select name="width2" id="width2" style="width: 50px; vertical-align: middle;">
<option value="">px</option>
<option value="%">%</option>
</select>
</td>
</tr>
<tr>
<td align="right" valign="top">{$lang_insert_advhr_size}:</td>
<td><select id="size" name="size" style="width: 100px;">
<option value="">Normal</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select></td>
</tr>
<tr>
<td align="right" valign="top"><input type="checkbox" name="noshade" id="noshade" class="radio" /></td>
<td><label for="noshade">{$lang_insert_advhr_noshade}</label></td>
</tr>
<tr>
<td><input type="button" name="insert" value="{$lang_insert}" onclick="insertHR();" id="insert" /></td>
<td align="right"><input type="button" name="cancel" value="{$lang_cancel}" onclick="cancelAction();" id="cancel" /></td>
</tr>
</table></td>
</tr>
</table>
</form>
</body>
</html>