upgrading tinymce to 2.0.5.1

This commit is contained in:
JT Smith 2006-04-15 20:03:31 +00:00
parent cb2a8d025e
commit 00d46f6148
342 changed files with 13043 additions and 11487 deletions

View file

@ -1 +1 @@
tinyMCE.importPluginLanguagePack('advlink','en,de,sv,zh_cn,cs,fa,fr_ca,fr,pl,pt_br,nl,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,cy,es,is,zh_tw,zh_tw_utf8,sk');function TinyMCE_advlink_getInfo(){return{longname:'Advanced link',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_advlink.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion};};function TinyMCE_advlink_getControlHTML(control_name){switch(control_name){case "link":var cmd='tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceAdvLink\');return false;';return '<a href="javascript:'+cmd+'" onclick="'+cmd+'" target="_self" onmousedown="return false;"><img id="{$editor_id}_advlink" src="{$themeurl}/images/link.gif" title="{$lang_link_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreClass(this);" /></a>';}return "";}function TinyMCE_advlink_execCommand(editor_id,element,command,user_interface,value){switch(command){case "mceAdvLink":var anySelection=false;var inst=tinyMCE.getInstanceById(editor_id);var focusElm=inst.getFocusElement();if(tinyMCE.selectedElement)anySelection=(tinyMCE.selectedElement.nodeName.toLowerCase()=="img")||(selectedText&&selectedText.length>0);if(anySelection||(focusElm!=null&&focusElm.nodeName=="A")){var template=new Array();template['file']='../../plugins/advlink/link.htm';template['width']=480;template['height']=400;template['width']+=tinyMCE.getLang('lang_advlink_delta_width',0);template['height']+=tinyMCE.getLang('lang_advlink_delta_height',0);tinyMCE.openWindow(template,{editor_id:editor_id,inline:"yes"});}return true;}return false;}function TinyMCE_advlink_handleNodeChange(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){tinyMCE.switchClassSticky(editor_id+'_advlink','mceButtonDisabled',true);if(node==null)return;if(any_selection)tinyMCE.switchClassSticky(editor_id+'_advlink','mceButtonNormal',false);do{if(node.nodeName=="A"&&tinyMCE.getAttrib(node,'href')!="")tinyMCE.switchClassSticky(editor_id+'_advlink','mceButtonSelected',false);}while((node=node.parentNode));return true;}
tinyMCE.importPluginLanguagePack('advlink','en,tr,de,sv,zh_cn,cs,fa,fr_ca,fr,pl,pt_br,nl,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,cy,es,is,zh_tw,zh_tw_utf8,sk,da');var TinyMCE_AdvancedLinkPlugin={getInfo:function(){return{longname:'Advanced link',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_advlink.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion};},initInstance:function(inst){inst.addShortcut('ctrl','k','lang_advlink_desc','mceAdvLink');},getControlHTML:function(cn){switch(cn){case"link":return tinyMCE.getButtonHTML(cn,'lang_link_desc','{$themeurl}/images/link.gif','mceAdvLink');}return"";},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mceAdvLink":var anySelection=false;var inst=tinyMCE.getInstanceById(editor_id);var focusElm=inst.getFocusElement();var selectedText=inst.selection.getSelectedText();if(tinyMCE.selectedElement)anySelection=(tinyMCE.selectedElement.nodeName.toLowerCase()=="img")||(selectedText&&selectedText.length>0);if(anySelection||(focusElm!=null&&focusElm.nodeName=="A")){var template=new Array();template['file']='../../plugins/advlink/link.htm';template['width']=480;template['height']=400;template['width']+=tinyMCE.getLang('lang_advlink_delta_width',0);template['height']+=tinyMCE.getLang('lang_advlink_delta_height',0);tinyMCE.openWindow(template,{editor_id:editor_id,inline:"yes"});}return true;}return false;},handleNodeChange:function(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){if(node==null)return;do{if(node.nodeName=="A"&&tinyMCE.getAttrib(node,'href')!=""){tinyMCE.switchClass(editor_id+'_advlink','mceButtonSelected');return true;}}while((node=node.parentNode));if(any_selection){tinyMCE.switchClass(editor_id+'_advlink','mceButtonNormal');return true;}tinyMCE.switchClass(editor_id+'_advlink','mceButtonDisabled');return true;}};tinyMCE.addPlugin("advlink",TinyMCE_AdvancedLinkPlugin);

View file

@ -1,69 +1,90 @@
/* Import plugin specific language pack */
tinyMCE.importPluginLanguagePack('advlink', 'en,de,sv,zh_cn,cs,fa,fr_ca,fr,pl,pt_br,nl,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,cy,es,is,zh_tw,zh_tw_utf8,sk');
/**
* $RCSfile: editor_plugin_src.js,v $
* $Revision: 1.24 $
* $Date: 2006/02/10 16:29:38 $
*
* @author Moxiecode
* @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved.
*/
function TinyMCE_advlink_getInfo() {
return {
longname : 'Advanced link',
author : 'Moxiecode Systems',
authorurl : 'http://tinymce.moxiecode.com',
infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_advlink.html',
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
};
/* Import plugin specific language pack */
tinyMCE.importPluginLanguagePack('advlink', 'en,tr,de,sv,zh_cn,cs,fa,fr_ca,fr,pl,pt_br,nl,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,cy,es,is,zh_tw,zh_tw_utf8,sk,da');
var TinyMCE_AdvancedLinkPlugin = {
getInfo : function() {
return {
longname : 'Advanced link',
author : 'Moxiecode Systems',
authorurl : 'http://tinymce.moxiecode.com',
infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_advlink.html',
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
};
},
initInstance : function(inst) {
inst.addShortcut('ctrl', 'k', 'lang_advlink_desc', 'mceAdvLink');
},
getControlHTML : function(cn) {
switch (cn) {
case "link":
return tinyMCE.getButtonHTML(cn, 'lang_link_desc', '{$themeurl}/images/link.gif', 'mceAdvLink');
}
return "";
},
execCommand : function(editor_id, element, command, user_interface, value) {
switch (command) {
case "mceAdvLink":
var anySelection = false;
var inst = tinyMCE.getInstanceById(editor_id);
var focusElm = inst.getFocusElement();
var selectedText = inst.selection.getSelectedText();
if (tinyMCE.selectedElement)
anySelection = (tinyMCE.selectedElement.nodeName.toLowerCase() == "img") || (selectedText && selectedText.length > 0);
if (anySelection || (focusElm != null && focusElm.nodeName == "A")) {
var template = new Array();
template['file'] = '../../plugins/advlink/link.htm';
template['width'] = 480;
template['height'] = 400;
// Language specific width and height addons
template['width'] += tinyMCE.getLang('lang_advlink_delta_width', 0);
template['height'] += tinyMCE.getLang('lang_advlink_delta_height', 0);
tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes"});
}
return true;
}
return false;
},
handleNodeChange : function(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) {
if (node == null)
return;
do {
if (node.nodeName == "A" && tinyMCE.getAttrib(node, 'href') != "") {
tinyMCE.switchClass(editor_id + '_advlink', 'mceButtonSelected');
return true;
}
} while ((node = node.parentNode));
if (any_selection) {
tinyMCE.switchClass(editor_id + '_advlink', 'mceButtonNormal');
return true;
}
tinyMCE.switchClass(editor_id + '_advlink', 'mceButtonDisabled');
return true;
}
};
function TinyMCE_advlink_getControlHTML(control_name) {
switch (control_name) {
case "link":
var cmd = 'tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceAdvLink\');return false;';
return '<a href="javascript:' + cmd + '" onclick="' + cmd + '" target="_self" onmousedown="return false;"><img id="{$editor_id}_advlink" src="{$themeurl}/images/link.gif" title="{$lang_link_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreClass(this);" /></a>';
}
return "";
}
function TinyMCE_advlink_execCommand(editor_id, element, command, user_interface, value) {
switch (command) {
case "mceAdvLink":
var anySelection = false;
var inst = tinyMCE.getInstanceById(editor_id);
var focusElm = inst.getFocusElement();
if (tinyMCE.selectedElement)
anySelection = (tinyMCE.selectedElement.nodeName.toLowerCase() == "img") || (selectedText && selectedText.length > 0);
if (anySelection || (focusElm != null && focusElm.nodeName == "A")) {
var template = new Array();
template['file'] = '../../plugins/advlink/link.htm';
template['width'] = 480;
template['height'] = 400;
// Language specific width and height addons
template['width'] += tinyMCE.getLang('lang_advlink_delta_width', 0);
template['height'] += tinyMCE.getLang('lang_advlink_delta_height', 0);
tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes"});
}
return true;
}
return false;
}
function TinyMCE_advlink_handleNodeChange(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) {
tinyMCE.switchClassSticky(editor_id + '_advlink', 'mceButtonDisabled', true);
if (node == null)
return;
if (any_selection)
tinyMCE.switchClassSticky(editor_id + '_advlink', 'mceButtonNormal', false);
do {
if (node.nodeName == "A" && tinyMCE.getAttrib(node, 'href') != "")
tinyMCE.switchClassSticky(editor_id + '_advlink', 'mceButtonSelected', false);
} while ((node = node.parentNode));
return true;
}
tinyMCE.addPlugin("advlink", TinyMCE_AdvancedLinkPlugin);

View file

@ -146,7 +146,8 @@ function parseWindowOpen(onclick) {
if (onclick.indexOf('return false;') != -1) {
formObj.popupreturn.checked = true;
onclick = onclick.replace('return false;', '');
}
} else
formObj.popupreturn.checked = false;
var onClickData = parseLink(onclick);
@ -355,6 +356,9 @@ function buildOnClick() {
// tinyMCE.debug(onclick);
formObj.onclick.value = onclick;
if (formObj.href.value == "")
formObj.href.value = url;
}
function setAttrib(elm, attrib, value) {
@ -416,7 +420,7 @@ function insertAction() {
// Create new anchor elements
if (elm == null) {
if (tinyMCE.isSafari)
tinyMCEPopup.execCommand("mceInsertContent", false, '<a href="#mce_temp_url#">' + inst.getSelectedHTML() + '</a>');
tinyMCEPopup.execCommand("mceInsertContent", false, '<a href="#mce_temp_url#">' + inst.selection.getSelectedHTML() + '</a>');
else
tinyMCEPopup.execCommand("createlink", false, "#mce_temp_url#");
@ -460,7 +464,7 @@ function setAllAttribs(elm) {
var target = getSelectValue(formObj, 'targetlist');
// Make anchors absolute
if (href.charAt(0) == '#')
if (href.charAt(0) == '#' && tinyMCE.getParam('convert_urls'))
href = tinyMCE.settings['document_base_url'] + href;
setAttrib(elm, 'href', convertURL(href, elm));

View file

@ -2,27 +2,50 @@
* Czech lang variables
* encoding: utf-8
*
* $Id: cs.js,v 1.4 2005/10/18 13:59:42 spocke Exp $
* $Id: cs.js,v 1.5 2006/01/11 14:25:47 spocke Exp $
*/
tinyMCE.addToLang('',{
insert_link_target_same : 'Otevřít ve stejném okně/rámu',
insert_link_target_parent : 'Otevřít v rodičovském okně/rámu',
insert_link_target_top : 'Otevřít v nejvyšším rámu (přepíše všechny rámy)',
insert_link_target_blank : 'Otevřít v novém okně',
insert_link_target_named : 'Otevřít v okně',
insert_link_popup : 'JS-Popup',
insert_link_popup_url : 'Popup URL',
insert_link_popup_name : 'Název okna',
insert_link_popup_return : 'Vložit \'return false\'',
insert_link_popup_scrollbars : 'Ukázat posuvníky',
insert_link_popup_statusbar : 'Ukázat stavový řádek',
insert_link_popup_toolbar : 'Ukázat ovládací lištu',
insert_link_popup_menubar : 'Ukázat menu',
insert_link_popup_location : 'Ukázat lištu umístění',
insert_link_popup_resizable : 'Proměnná velikost okna',
insert_link_popup_size : 'Velikost',
insert_link_popup_position : 'Umístění (X/Y)',
insert_link_popup_missingtarget : 'Vložte název cíle nebo vyberte jinou volbu.'
tinyMCE.addToLang('advlink',{
general_tab : 'Obecné',
popup_tab : 'Popup',
events_tab : 'Události',
advanced_tab : 'Pokročilé',
general_props : 'Obecné vlastnosti',
popup_props : 'Popup vlastnosti',
event_props : 'Události',
advanced_props : 'Advanced properties',
popup_opts : 'Možnosti',
anchor_names : 'Anchors',
target_same : 'Otevřít v tomto okně / rámu',
target_parent : 'Otevřít v rodičovském okně / rámu',
target_top : 'Otevřít v hlavním rámci (nahradí všechny rámce)',
target_blank : 'Otevřít v novém okně',
popup : 'Javascript popup',
popup_url : 'Popup URL',
popup_name : 'Jméno okna',
popup_return : 'Vložit \'return false\'',
popup_scrollbars : 'Zobrazit posuvníky',
popup_statusbar : 'Zobrazit stavový řádek',
popup_toolbar : 'Zobrazit nástrojovou lištu',
popup_menubar : 'Zobrazit menu',
popup_location : 'Zobrazit pole s adresou',
popup_resizable : 'Vytvořit okno, které jde zvětšovat/zmenšovat',
popup_dependent : 'Závisí (jen pro Mozilla/Firefox)',
popup_size : 'Velikost',
popup_position : 'Pozice (X/Y)',
id : 'Id',
style: 'Styl',
classes : 'Třídy',
target_name : 'Jméno cíle',
langdir : 'Jazykové nastavení',
target_langcode : 'Cílový jazyk',
langcode : 'Kód jazyka',
encoding : 'Cílové kódování znaků',
mime : 'Cílový MIME typ',
rel : 'Vztah stránky k cíli',
rev : 'Vztah cíle ke stránce',
tabindex : 'Tabulátor',
accesskey : 'Přístupové tlačítko',
ltr : 'Z leva doprava',
rtl : 'Z prava doleva'
});

View file

@ -1,4 +1,4 @@
// DK lang variables contributed by Jan Moelgaard
// DK lang variables contributed by Jan Moelgaard, John Dalsgaard and Bo Frederiksen.
tinyMCE.addToLang('advlink',{
general_tab : 'Generelt',
@ -10,37 +10,37 @@ popup_props : 'Popup egenskaber',
event_props : 'Events',
advanced_props : 'Advancerede egenskaber',
popup_opts : 'Valgmuligheder',
anchor_names : 'Bogm&#230;rker',
target_same : 'Åbn i samme vindue / ramme',
target_parent : 'Åbn i overordnet vindue / ramme',
target_top : 'Åbn i topramme (erstatter alle rammer)',
target_blank : 'Åbn i nyt vindue',
anchor_names : 'Bogm&aelig;rker',
target_same : '&Aring;bn i samme vindue / ramme',
target_parent : '&Aring;bn i overordnet vindue / ramme',
target_top : '&Aring;bn i topramme (erstatter alle rammer)',
target_blank : '&Aring;bn i nyt vindue',
popup : 'Javascript popup',
popup_url : 'Popup adresse',
popup_name : 'Winduets navn',
popup_return : 'Inds&#230;t \'return false\'',
popup_return : 'Inds&aelig;t \'return false\'',
popup_scrollbars : 'Vis scrollbar',
popup_statusbar : 'Vis statuslinje',
popup_toolbar : 'Vis v&#230;rkt&#248;jslinjer',
popup_toolbar : 'Vis v&aelig;rkt&oslash;jslinjer',
popup_menubar : 'Vis menulinje',
popup_location : 'Vis adresse',
popup_resizable : 'G&#248;r vinduet skalerbart',
popup_dependent : 'Afh&#230;ngigt (kun ved Mozilla/Firefox)',
popup_size : 'St&#248;rrelse',
popup_resizable : 'G&oslash;r vinduet skalerbart',
popup_dependent : 'Afh&aelig;ngigt (kun ved Mozilla/Firefox)',
popup_size : 'St&oslash;rrelse',
popup_position : 'Placering (X/Y)',
id : 'Id',
style: 'Style',
classes : 'Klasser',
target_name : 'Target navn',
langdir : 'Sprogretning',
target_langcode : 'Target sprog',
langdir : 'Sprogretning',
langcode : 'Sprogkode',
encoding : 'Target karakterkode',
encoding : 'Target tegnkode',
mime : 'Target MIME type',
rel : 'Relation mellem side og target',
rev : 'Relation mellem target og side',
tabindex : 'Tabindex',
accesskey : 'Adgangsn&#248;gle',
ltr : 'Venstre til h&#248;jre',
rtl : 'H&#248;jre til venstre'
accesskey : 'Genvejstast',
ltr : 'Venstre til h&oslash;jre',
rtl : 'H&oslash;jre til venstre'
});

View file

@ -26,7 +26,7 @@ popup_menubar : 'Vis meny bar',
popup_location : 'Vis location bar',
popup_resizable : 'Gj&oslash;r vinduet skalerbart',
popup_dependent : 'Avhengig vindu (Bare i Mozilla/Firefox)',
popup_size : 'St&oring;rrelse',
popup_size : 'St&oslash;rrelse',
popup_position : 'Posisjon (X/Y)',
id : 'Id',
style: 'Stil',
@ -44,3 +44,4 @@ accesskey : 'Accesskey',
ltr : 'Venstre mot h&oslash;yre',
rtl : 'H&oslash;yre mot venstre'
});

View file

@ -1,6 +1,6 @@
// NL lang variables
tinyMCE.addToLang('',{
tinyMCE.addToLang('advlink',{
general_tab : 'Algemeen',
popup_tab : 'Popup',
events_tab : 'Gebeurtenissen',

View file

@ -1,4 +1,5 @@
// Simplified Chinese lang variables contributed by tom_cat (thomaswangyang@gmail.com)
// Simplified Chinese lang variables contributed by TinyMCE_China_Team ( tinymce_china {AT} yahoogroups {DOT} com ).
// visit our homepage at: http://www.cube316.net/tinymce/ for more information.
tinyMCE.addToLang('advlink',{
general_tab : '一般',
@ -40,7 +41,7 @@ mime : 'Ŀ
rel : '页与目标的关系',
rev : '目标与页的关系',
tabindex : 'Tabindex',
accesskey : 'Accesskey',
accesskey : '우쌥숩',
ltr : '从左到右',
rtl : '从右到左'
});

View file

@ -126,7 +126,7 @@
<tr>
<td><input type="checkbox" id="popupstatus" name="popupstatus" class="checkbox" onchange="buildOnClick();" /></td>
<td nowrap="nowrap"><label id="popupstatuslabel" for="popupstatus">{$lang_advlink_popup_statusbar}</label></td>
<td><input type="checkbox" id="popupreturn" name="popupreturn" class="checkbox" onchange="buildOnClick();" /></td>
<td><input type="checkbox" id="popupreturn" name="popupreturn" class="checkbox" onchange="buildOnClick();" checked="checked" /></td>
<td nowrap="nowrap"><label id="popupreturnlabel" for="popupreturn">{$lang_advlink_popup_return}</label></td>
</tr>
</table>