upgrading to tinymce 2.0.6.1

This commit is contained in:
JT Smith 2006-06-23 18:18:40 +00:00
parent f8e69afdf4
commit 0534118f8d
70 changed files with 1159 additions and 555 deletions

View file

@ -14,6 +14,11 @@ body {
border: 1px dashed #BBBBBB !important;
}
div.mceVisualAid {
background-image:url('../images/spacer.gif');
visibility: visible !important;
}
.mceItemAnchor {
width: 12px;
line-height: 6px;

View file

@ -122,6 +122,10 @@
padding: 0;
}
.mceEditorIframe {
border: 0;
}
/* Button CSS rules */
a.mceButtonDisabled img, a.mceButtonNormal img, a.mceButtonSelected img {
@ -295,6 +299,7 @@ span.mceMenuButtonFocus img.mceMenuButton {
.mceMenu a:hover {
background-color: #B6BDD2;
color: black;
text-decoration: none !important;
}
.mceMenu span {

File diff suppressed because one or more lines are too long

View file

@ -1,7 +1,7 @@
/**
* $RCSfile: editor_template_src.js,v $
* $Revision: 1.93 $
* $Date: 2006/03/14 17:33:50 $
* $Revision: 1.96 $
* $Date: 2006/04/18 13:32:52 $
*
* @author Moxiecode
* @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved.
@ -81,7 +81,13 @@ var TinyMCE_AdvancedTheme = {
['h3', '{$lang_theme_h3}'],
['h4', '{$lang_theme_h4}'],
['h5', '{$lang_theme_h5}'],
['h6', '{$lang_theme_h6}']
['h6', '{$lang_theme_h6}'],
['div', '{$lang_theme_div}'],
['blockquote', '{$lang_theme_blockquote}'],
['code', '{$lang_theme_code}'],
['dt', '{$lang_theme_dt}'],
['dd', '{$lang_theme_dd}'],
['samp', '{$lang_theme_samp}']
];
html += '<option value="">{$lang_theme_block}</option>';
@ -90,7 +96,7 @@ var TinyMCE_AdvancedTheme = {
for (var i=0; i<formats.length; i++) {
for (var x=0; x<lookup.length; x++) {
if (formats[i] == lookup[x][0])
html += '<option value="<' + lookup[x][0] + '>">' + lookup[x][1] + '</option>';
html += '<option value="&lt;' + lookup[x][0] + '&gt;">' + lookup[x][1] + '</option>';
}
}
@ -117,16 +123,16 @@ var TinyMCE_AdvancedTheme = {
return fontHTML;
case "fontsizeselect":
return '<select id="{$editor_id}_fontSizeSelect" name="{$editor_id}_fontSizeSelect" onfocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'FontSize\',false,this.options[this.selectedIndex].value);" class="mceSelectList">\
<option value="0">{$lang_theme_font_size}</option>\
<option value="1">1 (8 pt)</option>\
<option value="2">2 (10 pt)</option>\
<option value="3">3 (12 pt)</option>\
<option value="4">4 (14 pt)</option>\
<option value="5">5 (18 pt)</option>\
<option value="6">6 (24 pt)</option>\
<option value="7">7 (36 pt)</option>\
</select>';
return '<select id="{$editor_id}_fontSizeSelect" name="{$editor_id}_fontSizeSelect" onfocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'FontSize\',false,this.options[this.selectedIndex].value);" class="mceSelectList">'+
'<option value="0">{$lang_theme_font_size}</option>'+
'<option value="1">1 (8 pt)</option>'+
'<option value="2">2 (10 pt)</option>'+
'<option value="3">3 (12 pt)</option>'+
'<option value="4">4 (14 pt)</option>'+
'<option value="5">5 (18 pt)</option>'+
'<option value="6">6 (24 pt)</option>'+
'<option value="7">7 (36 pt)</option>'+
'</select>';
case "|":
case "separator":
@ -458,7 +464,7 @@ var TinyMCE_AdvancedTheme = {
var deltaHeight = 0;
var resizing = tinyMCE.getParam("theme_advanced_resizing", false);
var path = tinyMCE.getParam("theme_advanced_path", true);
var statusbarHTML = '<div id="{$editor_id}_path" class="mceStatusbarPathText" style="display: ' + (path ? "block" : "none") + '">&nbsp;</div><div id="{$editor_id}_resize" class="mceStatusbarResize" style="display: ' + (resizing ? "block" : "none") + '" onmousedown="tinyMCE.themes.advanced._setResizing(event,\'{$editor_id}\',true);"></div><br style="clear: both" />';
var statusbarHTML = '<div id="{$editor_id}_path" class="mceStatusbarPathText" style="display: ' + (path ? "block" : "none") + '">&#160;</div><div id="{$editor_id}_resize" class="mceStatusbarResize" style="display: ' + (resizing ? "block" : "none") + '" onmousedown="tinyMCE.themes.advanced._setResizing(event,\'{$editor_id}\',true);"></div><br style="clear: both" />';
var layoutManager = tinyMCE.getParam("theme_advanced_layout_manager", "SimpleLayout");
// Setup style select options -- MOVED UP FOR EXTERNAL TOOLBAR COMPATABILITY!
@ -583,11 +589,7 @@ var TinyMCE_AdvancedTheme = {
for (var i = 0; i < containers.length; i++)
{
if (containers[i] == "mceEditor") //Exceptions for mceEditor and ...
{
template['html'] += '<tr><td align="center" class="mceEditor_border">\
<span id="{$editor_id}"></span>\
</td></tr>';
}
template['html'] += '<tr><td align="center" class="mceEditor_border"><span id="{$editor_id}"></span></td></tr>';
else if (containers[i] == "mceElementpath" || containers[i] == "mceStatusbar") // ... mceElementpath:
{
var pathClass = "mceStatusbar";
@ -814,7 +816,7 @@ var TinyMCE_AdvancedTheme = {
}
}
pathElm.innerHTML = '<a href="#" accesskey="x"></a>' + tinyMCE.getLang('lang_theme_path') + ": " + html + '&nbsp;';
pathElm.innerHTML = '<a href="#" accesskey="x"></a>' + tinyMCE.getLang('lang_theme_path') + ": " + html + '&#160;';
}
// Reset old states

View file

@ -17,6 +17,11 @@ function onLoadInit() {
document.forms[0].htmlSource.value = fixContent(tinyMCE.getContent(tinyMCE.getWindowArg('editor_id')));
resizeInputs();
if (tinyMCE.getParam("theme_advanced_source_editor_wrap", true)) {
setWrap('soft');
document.forms[0].wraped.checked = true;
}
}
function setWrap(val) {

View file

@ -2,12 +2,12 @@
* Czech lang variables
* encoding: utf-8
*
* $Id: cs.js,v 1.10 2005/10/18 13:55:39 spocke Exp $
* $Id: cs.js,v 1.11 2006/03/20 14:32:00 spocke Exp $
*/
tinyMCE.addToLang('',{
theme_style_select : 'Styly',
theme_style_select : '-- Styly --',
theme_code_desc : 'Zobrazit HTML',
theme_code_title : 'Editace HTML',
theme_code_wordwrap : 'Bez dělení slov',
@ -21,7 +21,7 @@ insert_image_dimensions : 'Rozměry',
insert_image_vspace : 'Vertikální okraj',
insert_image_hspace : 'Horizontální okraj',
insert_image_align : 'Zarovnání',
insert_image_align_default : 'Výchozí',
insert_image_align_default : '-- Výchozí --',
insert_image_align_baseline : 'Na účaří',
insert_image_align_top : 'Nahoru',
insert_image_align_middle : 'Na střed',
@ -65,6 +65,17 @@ image_list : 'Seznam',
browse : 'Procházet',
image_props_desc : 'Vlastnosti obrázku',
newdocument_desc : 'Nový dokument',
newdocument : 'Jste si opravdu jistý(á), že chcete vymazat veškerý obsah?'
});
newdocument : 'Jste si opravdu jistý(á), že chcete vymazat veškerý obsah?',
about_title : 'O TinyMCE',
about : 'O nás',
license : 'Licence',
plugins : 'Pluginy',
plugin : 'Plugin',
author : 'Autor',
version : 'Verze',
loaded_plugins : 'Načtené pluginy',
help : 'Nápověda',
not_set : '-- Nenastaven --',
close : 'Zavřít',
toolbar_focus : 'Nastavení fokusu na nástrojovou lištu - Alt+Q, Nastavení fokusu na editor textu - Alt-Z, Nastavení fokusu na řádek zanoření elementů - Alt-X'
});

View file

@ -1,23 +1,22 @@
// Canadian French lang variables by Virtuelcom
// Modify by Laurent Dran 13-02-2006
// Modifié par Normand Lamoureux le 2005-11-12
// FR lang variables
// Modified by Motte, last updated 2006-03-23
tinyMCE.addToLang('',{
theme_style_select : '-- Style --',
theme_code_desc : 'Afficher le code source',
theme_code_title : 'Édititon du code source',
theme_code_wordwrap : 'Retour à la ligne automatique',
theme_code_title : 'Edition du code source',
theme_code_wordwrap : 'Retour &agrave; la ligne automatique',
theme_sub_desc : 'Indice',
theme_sup_desc : 'Exposant',
theme_hr_desc : 'Insérer une règle horizontale ordinaire',
theme_removeformat_desc : 'Supprimer le formattage',
theme_custom1_desc : 'Votre description personnalisée ici',
theme_hr_desc : 'Ins&eacute;rer une r&egrave;gle horizontale ordinaire',
theme_removeformat_desc : 'Supprimer le formatage',
theme_custom1_desc : 'Votre description personnalis&eacute;e ici',
insert_image_border : 'Bordure',
insert_image_dimensions : 'Dimensions',
insert_image_vspace : 'Espacement vertical',
insert_image_hspace : 'Espacement horizontal',
insert_image_align : 'Alignement',
insert_image_align_default : '-- Indéfini --',
insert_image_align_default : '-- Ind&eacute;fini --',
insert_image_align_baseline : 'Ligne de base',
insert_image_align_top : 'Haut',
insert_image_align_middle : 'Milieu',
@ -25,15 +24,15 @@ insert_image_align_bottom : 'Bas',
insert_image_align_texttop : 'Haut du texte',
insert_image_align_absmiddle : 'Milieu absolu',
insert_image_align_absbottom : 'Bas absolu',
insert_image_align_left : 'En flottement à gauche',
insert_image_align_right : 'En flottement à droite',
insert_image_align_left : 'En flottement &agrave; gauche',
insert_image_align_right : 'En flottement &agrave; droite',
theme_font_size : '-- Taille --',
theme_fontdefault : '-- Police --',
theme_block : '-- Bloc de texte --',
theme_paragraph : 'Paragraphe',
theme_div : 'Div',
theme_address : 'Infos sur l\'auteur',
theme_pre : 'Texte préformaté',
theme_pre : 'Texte pr&eacute;format&eacute;',
theme_h1 : 'Titre de niveau 1',
theme_h2 : 'Titre de niveau 2',
theme_h3 : 'Titre de niveau 3',
@ -43,36 +42,36 @@ theme_h6 : 'Titre de niveau 6',
theme_colorpicker_title : 'Choisir une couleur',
theme_colorpicker_apply : 'Appliquer',
theme_forecolor_desc : 'Couleur du texte',
theme_backcolor_desc : 'Couleur d\'arrière-plan',
theme_charmap_title : 'Sélectionner un charactère spécial',
theme_charmap_desc : 'Insérer un charactère spécial',
theme_visualaid_desc : 'Activer/Désactiver les lignes guides et les éléments invisibles',
theme_backcolor_desc : 'Couleur d\'arri&egrave;re-plan',
theme_charmap_title : 'S&eacute;lectionner un charact&egrave;re sp&eacute;cial',
theme_charmap_desc : 'Ins&eacute;rer un charact&egrave;re sp&eacute;cial',
theme_visualaid_desc : 'Activer/D&eacute;sactiver les lignes guides et les &eacute;l&eacute;ments invisibles',
insert_anchor_title : 'Gestionnaire d\'ancre',
insert_anchor_name : 'Nom de l\'ancre',
theme_anchor_desc : 'Insérer/Modifier une ancre',
theme_anchor_desc : 'Ins&eacute;rer/Modifier une ancre',
theme_insert_link_titlefield : 'Info-bulle',
theme_clipboard_msg : 'Pour des raisons de sécurité, les fonctions « Copier », « Couper » et « Coller »\nne sont pas disponibles dans Mozilla et Firefox.\n\n\nVoulez-vous plus d\'information à ce sujet?\n',
theme_path : 'Élément(s) en cours ',
theme_clipboard_msg : 'Pour des raisons de s&eacute;curit&eacute;, les fonctions « Copier », « Couper » et « Coller »\nne sont pas disponibles dans Mozilla et Firefox.\n\n\nVoulez-vous plus d\'information &agrave; ce sujet?\n',
theme_path : 'El&eacute;ment(s) en cours ',
cut_desc : 'Couper',
copy_desc : 'Copier',
paste_desc : 'Coller',
link_list : 'Lien de la liste',
image_list : 'Image de la liste',
browse : 'Naviguer',
image_props_desc : 'Propriétés de l\'image',
image_props_desc : 'Propri&eacute;t&eacute;s de l\'image',
newdocument_desc : 'Nouveau document',
class_name : 'Classe CSS',
newdocument : 'Êtes-vous sûr de vouloir supprimer tout le contenu ?',
about_title : 'À propos de TinyMCE',
about : 'À propos',
newdocument : 'Etes-vous s&ucirc;r de vouloir supprimer tout le contenu ?',
about_title : 'A propos de TinyMCE',
about : 'A propos',
license : 'License',
plugins : 'Extensions',
plugin : 'Extension',
author : 'Auteur',
version : 'Version',
loaded_plugins : 'Extensions installées',
loaded_plugins : 'Extensions install&eacute;es',
help : 'Aide',
not_set : '-- Indéfini --',
not_set : '-- Ind&eacute;fini --',
close : 'Fermer',
toolbar_focus : 'Atteindre la barre d\'outils (Alt+Q), Atteindre l\'éditeur (Alt-Z), Atteindre l\'élément en cours (Alt-X)'
toolbar_focus : 'Atteindre la barre d\'outils (Alt+Q), Atteindre l\'&eacute;diteur (Alt-Z), Atteindre l\'&eacute;l&eacute;ment en cours (Alt-X)'
});

View file

@ -1,33 +1,33 @@
// Variabili di lingua IT - fabrix.xm@lombardiacom.it
// IT lang variables
tinyMCE.addToLang('',{
theme_style_select : 'Stili',
theme_code_desc : 'Edita il sorgente HTML',
theme_code_title : 'Editor Sorgente HTML',
theme_code_wordwrap : 'Word wrap',
theme_sub_desc : 'Pedice',
theme_sup_desc : 'Apice',
theme_hr_desc : 'Inserisci linea orizzontale',
theme_style_select : '-- Stili --',
theme_code_desc : 'Modifica codice HTML',
theme_code_title : 'Editor HTML',
theme_code_wordwrap : 'A capo',
theme_sub_desc : 'Apice',
theme_sup_desc : 'Pedice',
theme_hr_desc : 'Inserisci riga orizzontale',
theme_removeformat_desc : 'Rimuovi formattazione',
theme_custom1_desc : 'Scrivi qui la tua descrizione personalizzata',
theme_custom1_desc : 'La tua descrizione personalizzata',
insert_image_border : 'Bordo',
insert_image_dimensions : 'Dimensioni',
insert_image_vspace : 'Spazio verticale',
insert_image_hspace : 'Spazio orizzontale',
insert_image_vspace : 'Spaziatura verticale',
insert_image_hspace : 'Spaziatura orizzontale',
insert_image_align : 'Allineamento',
insert_image_align_default : 'Default',
insert_image_align_baseline : 'Baseline',
insert_image_align_top : 'Superiore',
insert_image_align_middle : 'Centrale',
insert_image_align_bottom : 'Inferiore',
insert_image_align_texttop : 'TextTop',
insert_image_align_absmiddle : 'Centro assoluto',
insert_image_align_absbottom : 'Inferiore assoluto',
insert_image_align_left : 'Sinistra',
insert_image_align_right : 'Destra',
theme_font_size : '-- Font size --',
theme_fontdefault : '-- Font family --',
theme_block : '-- Format --',
insert_image_align_default : '-- Non impostato --',
insert_image_align_baseline : 'Alla base',
insert_image_align_top : 'In alto',
insert_image_align_middle : 'In mezzo',
insert_image_align_bottom : 'In basso',
insert_image_align_texttop : 'In alto col testo',
insert_image_align_absmiddle : 'In mezzo (assoluto)',
insert_image_align_absbottom : 'In basso (assoluto)',
insert_image_align_left : 'A sinistra',
insert_image_align_right : 'A destra',
theme_font_size : '-- Dimensione --',
theme_fontdefault : '-- Font --',
theme_block : '-- Formato --',
theme_paragraph : 'Paragrafo',
theme_div : 'Div',
theme_address : 'Indirizzo',
@ -38,27 +38,45 @@ theme_h3 : 'Intestazione 3',
theme_h4 : 'Intestazione 4',
theme_h5 : 'Intestazione 5',
theme_h6 : 'Intestazione 6',
theme_blockquote : 'Blockquote',
theme_code : 'Codice',
theme_samp : 'Esempio di codice',
theme_dt : 'Definizione',
theme_dd : 'Descrizione di definizione',
theme_colorpicker_title : 'Seleziona un colore',
theme_colorpicker_apply : 'Applica',
theme_forecolor_desc : 'Seleziona il colore',
theme_forecolor_desc : 'Seleziona il colore del testo',
theme_backcolor_desc : 'Seleziona il colore di sfondo',
theme_charmap_title : 'Seleziona un carattere custom',
theme_charmap_desc : 'Inserisci un carattere custom',
theme_visualaid_desc : 'Mostra/nascondi linee guida e elementi invisibili',
insert_anchor_title : 'Inserisci/modifica &agrave;ncora',
insert_anchor_name : 'Nome &agrave;ncora',
theme_anchor_desc : 'Inserisci/modifica &agrave;ncora',
theme_charmap_title : 'Seleziona un carattere personalizzato',
theme_charmap_desc : 'Inserisci un carattere personalizzato',
theme_visualaid_desc : 'Abilita o disabilita guide visuali',
insert_anchor_title : 'Inserisci o modifica un\'ancora',
insert_anchor_name : 'Nome dell\'ancora',
theme_anchor_desc : 'Inserisci o modifica l\'ancora',
theme_insert_link_titlefield : 'Titolo',
theme_clipboard_msg : 'Copia, Taglia e Incolla non sono disponibili in Mozilla e Firefox.\nVuoi maggiori dettegli su questo problema?',
theme_clipboard_msg : 'Le operazioni di taglia, copia e incolla non sono disponibili in Firefox. Vuoi ricevere ulteriori informazioni al riguardo?',
theme_path : 'Percorso',
cut_desc : 'Taglia',
copy_desc : 'Copia',
paste_desc : 'Incolla',
link_list : 'Lista link',
image_list : 'Lista immagini',
link_list : 'Lista di link',
image_list : 'Lista di immagini',
browse : 'Sfoglia',
image_props_desc : 'Proprietà dell\'immagine',
image_props_desc : 'Propriet&agrave; dell\'immagine',
newdocument_desc : 'Nuovo documento',
class_name : 'Classe',
newdocument : 'Sicuro di voler cancellare l\'intero contenuto?'
class_name : 'Classe',
newdocument : 'Sei sicuro di voler cancellare tutto?',
about_title : 'Informazioni su TinyMCE',
about : 'Informazioni',
license : 'Licenza',
plugins : 'Plugin',
plugin : 'Plugin',
author : 'Autore',
version : 'Versione',
loaded_plugins : 'Plugin caricati',
help : 'Aiuto',
not_set : '-- Non impostato --',
close : 'Chiudi',
toolbar_focus : 'Passa ai bottoni - Alt+Q, Passa all\'editor - Alt-Z, Passa al percorso - Alt-X',
theme_advanced_anchor_delta_width : 25
});

View file

@ -40,12 +40,12 @@ theme_paragraph : 'Odstavec',
theme_div : 'Div',
theme_address : 'Adresa',
theme_pre : 'Predformát',
theme_h1 : 'Nádpis 1',
theme_h2 : 'Nádpis 2',
theme_h3 : 'Nádpis 3',
theme_h4 : 'Nádpis 4',
theme_h5 : 'Nádpis 5',
theme_h6 : 'Nádpis 6',
theme_h1 : 'Nadpis 1',
theme_h2 : 'Nadpis 2',
theme_h3 : 'Nadpis 3',
theme_h4 : 'Nadpis 4',
theme_h5 : 'Nadpis 5',
theme_h6 : 'Nadpis 6',
theme_colorpicker_title : 'Výber farby',
theme_colorpicker_apply : 'Vybrať',
theme_forecolor_desc : 'Farba popredia',

View file

@ -44,6 +44,10 @@
padding-bottom: 1px;
}
.mceEditorIframe {
border: 0;
}
/* Button CSS rules */
a.mceButtonDisabled img, a.mceButtonNormal img, a.mceButtonSelected img {

View file

@ -1,4 +1,4 @@
var TinyMCE_SimpleTheme={_buttonMap:'bold,bullist,cleanup,italic,numlist,redo,strikethrough,underline,undo',getEditorTemplate:function(){var html='';html+='<table class="mceEditor" border="0" cellpadding="0" cellspacing="0" width="{$width}" height="{$height}">';html+='<tr><td align="center">';html+='<span id="{$editor_id}">IFRAME</span>';html+='</td></tr>';html+='<tr><td class="mceToolbar" align="center" height="1">';html+=tinyMCE.getButtonHTML('bold','lang_bold_desc','{$themeurl}/images/{$lang_bold_img}','Bold');html+=tinyMCE.getButtonHTML('italic','lang_italic_desc','{$themeurl}/images/{$lang_italic_img}','Italic');html+=tinyMCE.getButtonHTML('underline','lang_underline_desc','{$themeurl}/images/{$lang_underline_img}','Underline');html+=tinyMCE.getButtonHTML('strikethrough','lang_striketrough_desc','{$themeurl}/images/strikethrough.gif','Strikethrough');html+='<img src="{$themeurl}/images/separator.gif" width="2" height="20" class="mceSeparatorLine">';html+=tinyMCE.getButtonHTML('undo','lang_undo_desc','{$themeurl}/images/undo.gif','Undo');html+=tinyMCE.getButtonHTML('redo','lang_redo_desc','{$themeurl}/images/redo.gif','Redo');html+='<img src="{$themeurl}/images/separator.gif" width="2" height="20" class="mceSeparatorLine">';html+=tinyMCE.getButtonHTML('cleanup','lang_cleanup_desc','{$themeurl}/images/cleanup.gif','mceCleanup')
html+='<img src="{$themeurl}/images/separator.gif" width="2" height="20" class="mceSeparatorLine">';html+=tinyMCE.getButtonHTML('bullist','lang_bullist_desc','{$themeurl}/images/bullist.gif','InsertUnorderedList')
var TinyMCE_SimpleTheme={_buttonMap:'bold,bullist,cleanup,italic,numlist,redo,strikethrough,underline,undo',getEditorTemplate:function(){var html='';html+='<table class="mceEditor" border="0" cellpadding="0" cellspacing="0" width="{$width}" height="{$height}">';html+='<tr><td align="center">';html+='<span id="{$editor_id}">IFRAME</span>';html+='</td></tr>';html+='<tr><td class="mceToolbar" align="center" height="1">';html+=tinyMCE.getButtonHTML('bold','lang_bold_desc','{$themeurl}/images/{$lang_bold_img}','Bold');html+=tinyMCE.getButtonHTML('italic','lang_italic_desc','{$themeurl}/images/{$lang_italic_img}','Italic');html+=tinyMCE.getButtonHTML('underline','lang_underline_desc','{$themeurl}/images/{$lang_underline_img}','Underline');html+=tinyMCE.getButtonHTML('strikethrough','lang_striketrough_desc','{$themeurl}/images/strikethrough.gif','Strikethrough');html+='<img src="{$themeurl}/images/separator.gif" width="2" height="20" class="mceSeparatorLine" />';html+=tinyMCE.getButtonHTML('undo','lang_undo_desc','{$themeurl}/images/undo.gif','Undo');html+=tinyMCE.getButtonHTML('redo','lang_redo_desc','{$themeurl}/images/redo.gif','Redo');html+='<img src="{$themeurl}/images/separator.gif" width="2" height="20" class="mceSeparatorLine" />';html+=tinyMCE.getButtonHTML('cleanup','lang_cleanup_desc','{$themeurl}/images/cleanup.gif','mceCleanup')
html+='<img src="{$themeurl}/images/separator.gif" width="2" height="20" class="mceSeparatorLine" />';html+=tinyMCE.getButtonHTML('bullist','lang_bullist_desc','{$themeurl}/images/bullist.gif','InsertUnorderedList')
html+=tinyMCE.getButtonHTML('numlist','lang_numlist_desc','{$themeurl}/images/numlist.gif','InsertOrderedList')
html+='</td></tr></table>';return{delta_width:0,delta_height:20,html:html};},handleNodeChange:function(editor_id,node){tinyMCE.switchClass(editor_id+'_bold','mceButtonNormal');tinyMCE.switchClass(editor_id+'_italic','mceButtonNormal');tinyMCE.switchClass(editor_id+'_underline','mceButtonNormal');tinyMCE.switchClass(editor_id+'_strikethrough','mceButtonNormal');tinyMCE.switchClass(editor_id+'_bullist','mceButtonNormal');tinyMCE.switchClass(editor_id+'_numlist','mceButtonNormal');do{switch(node.nodeName.toLowerCase()){case"b":case"strong":tinyMCE.switchClass(editor_id+'_bold','mceButtonSelected');break;case"i":case"em":tinyMCE.switchClass(editor_id+'_italic','mceButtonSelected');break;case"u":tinyMCE.switchClass(editor_id+'_underline','mceButtonSelected');break;case"strike":tinyMCE.switchClass(editor_id+'_strikethrough','mceButtonSelected');break;case"ul":tinyMCE.switchClass(editor_id+'_bullist','mceButtonSelected');break;case"ol":tinyMCE.switchClass(editor_id+'_numlist','mceButtonSelected');break;}}while((node=node.parentNode)!=null);}};tinyMCE.addTheme("simple",TinyMCE_SimpleTheme);tinyMCE.addButtonMap(TinyMCE_SimpleTheme._buttonMap);

View file

@ -1,7 +1,7 @@
/**
* $RCSfile: editor_template_src.js,v $
* $Revision: 1.8 $
* $Date: 2006/02/11 18:53:53 $
* $Revision: 1.9 $
* $Date: 2006/04/18 13:32:53 $
*
* @author Moxiecode
* @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved.
@ -23,12 +23,12 @@ var TinyMCE_SimpleTheme = {
html += tinyMCE.getButtonHTML('italic', 'lang_italic_desc', '{$themeurl}/images/{$lang_italic_img}', 'Italic');
html += tinyMCE.getButtonHTML('underline', 'lang_underline_desc', '{$themeurl}/images/{$lang_underline_img}', 'Underline');
html += tinyMCE.getButtonHTML('strikethrough', 'lang_striketrough_desc', '{$themeurl}/images/strikethrough.gif', 'Strikethrough');
html += '<img src="{$themeurl}/images/separator.gif" width="2" height="20" class="mceSeparatorLine">';
html += '<img src="{$themeurl}/images/separator.gif" width="2" height="20" class="mceSeparatorLine" />';
html += tinyMCE.getButtonHTML('undo', 'lang_undo_desc', '{$themeurl}/images/undo.gif', 'Undo');
html += tinyMCE.getButtonHTML('redo', 'lang_redo_desc', '{$themeurl}/images/redo.gif', 'Redo');
html += '<img src="{$themeurl}/images/separator.gif" width="2" height="20" class="mceSeparatorLine">';
html += '<img src="{$themeurl}/images/separator.gif" width="2" height="20" class="mceSeparatorLine" />';
html += tinyMCE.getButtonHTML('cleanup', 'lang_cleanup_desc', '{$themeurl}/images/cleanup.gif', 'mceCleanup')
html += '<img src="{$themeurl}/images/separator.gif" width="2" height="20" class="mceSeparatorLine">';
html += '<img src="{$themeurl}/images/separator.gif" width="2" height="20" class="mceSeparatorLine" />';
html += tinyMCE.getButtonHTML('bullist', 'lang_bullist_desc', '{$themeurl}/images/bullist.gif', 'InsertUnorderedList')
html += tinyMCE.getButtonHTML('numlist', 'lang_numlist_desc', '{$themeurl}/images/numlist.gif', 'InsertOrderedList')
html += '</td></tr></table>';