Updated TinyMCE to 3.2.1.1

This commit is contained in:
abacab
2009-01-01 11:44:00 -05:00
parent a7a76e9aee
commit 5c0ed5db40
1344 changed files with 74627 additions and 12975 deletions

View File

@@ -0,0 +1,5 @@
input.radio {border:1px none #000; background:transparent; vertical-align:middle;}
.panel_wrapper div.current {height:80px;}
#width {width:50px; vertical-align:middle;}
#width2 {width:50px; vertical-align:middle;}
#size {width:100px;}

View File

@@ -1,2 +1 @@
/* Import plugin specific language pack */
tinyMCE.importPluginLanguagePack('advhr','en,de,sv,zh_cn,cs,fa,fr_ca,fr');function TinyMCE_advhr_getControlHTML(control_name){switch(control_name){case "advhr":return '<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\');" onclick="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceAdvancedHr\');" />';}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;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,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;}
(function(){tinymce.create('tinymce.plugins.AdvancedHRPlugin',{init:function(ed,url){ed.addCommand('mceAdvancedHr',function(){ed.windowManager.open({file:url+'/rule.htm',width:250+parseInt(ed.getLang('advhr.delta_width',0)),height:160+parseInt(ed.getLang('advhr.delta_height',0)),inline:1},{plugin_url:url});});ed.addButton('advhr',{title:'advhr.advhr_desc',cmd:'mceAdvancedHr'});ed.onNodeChange.add(function(ed,cm,n){cm.setActive('advhr',n.nodeName=='HR');});ed.onClick.add(function(ed,e){e=e.target;if(e.nodeName==='HR')ed.selection.select(e);});},getInfo:function(){return{longname:'Advanced HR',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr',version:tinymce.majorVersion+"."+tinymce.minorVersion};}});tinymce.PluginManager.add('advhr',tinymce.plugins.AdvancedHRPlugin);})();

View File

@@ -1,58 +1,54 @@
/* Import plugin specific language pack */
tinyMCE.importPluginLanguagePack('advhr', 'en,de,sv,zh_cn,cs,fa,fr_ca,fr');
function TinyMCE_advhr_getControlHTML(control_name) {
switch (control_name) {
case "advhr":
return '<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\');" onclick="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceAdvancedHr\');" />';
}
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;
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, 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;
}
/**
* $Id: editor_plugin_src.js 520 2008-01-07 16:30:32Z spocke $
*
* @author Moxiecode
* @copyright Copyright <20> 2004-2008, Moxiecode Systems AB, All rights reserved.
*/
(function() {
tinymce.create('tinymce.plugins.AdvancedHRPlugin', {
init : function(ed, url) {
// Register commands
ed.addCommand('mceAdvancedHr', function() {
ed.windowManager.open({
file : url + '/rule.htm',
width : 250 + parseInt(ed.getLang('advhr.delta_width', 0)),
height : 160 + parseInt(ed.getLang('advhr.delta_height', 0)),
inline : 1
}, {
plugin_url : url
});
});
// Register buttons
ed.addButton('advhr', {
title : 'advhr.advhr_desc',
cmd : 'mceAdvancedHr'
});
ed.onNodeChange.add(function(ed, cm, n) {
cm.setActive('advhr', n.nodeName == 'HR');
});
ed.onClick.add(function(ed, e) {
e = e.target;
if (e.nodeName === 'HR')
ed.selection.select(e);
});
},
getInfo : function() {
return {
longname : 'Advanced HR',
author : 'Moxiecode Systems AB',
authorurl : 'http://tinymce.moxiecode.com',
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr',
version : tinymce.majorVersion + "." + tinymce.minorVersion
};
}
});
// Register plugin
tinymce.PluginManager.add('advhr', tinymce.plugins.AdvancedHRPlugin);
})();

Binary file not shown.

Before

Width:  |  Height:  |  Size: 209 B

View File

@@ -0,0 +1,43 @@
var AdvHRDialog = {
init : function(ed) {
var dom = ed.dom, f = document.forms[0], n = ed.selection.getNode(), w;
w = dom.getAttrib(n, 'width');
f.width.value = w ? parseInt(w) : (dom.getStyle('width') || '');
f.size.value = dom.getAttrib(n, 'size') || parseInt(dom.getStyle('height')) || '';
f.noshade.checked = !!dom.getAttrib(n, 'noshade') || !!dom.getStyle('border-width');
selectByValue(f, 'width2', w.indexOf('%') != -1 ? '%' : 'px');
},
update : function() {
var ed = tinyMCEPopup.editor, h, f = document.forms[0], st = '';
h = '<hr';
if (f.size.value) {
h += ' size="' + f.size.value + '"';
st += ' height:' + f.size.value + 'px;';
}
if (f.width.value) {
h += ' width="' + f.width.value + (f.width2.value == '%' ? '%' : '') + '"';
st += ' width:' + f.width.value + (f.width2.value == '%' ? '%' : 'px') + ';';
}
if (f.noshade.checked) {
h += ' noshade="noshade"';
st += ' border-width: 1px; border-style: solid; border-color: #CCCCCC; color: #ffffff;';
}
if (ed.settings.inline_styles)
h += ' style="' + tinymce.trim(st) + '"';
h += ' />';
ed.execCommand("mceInsertContent", false, h);
tinyMCEPopup.close();
}
};
tinyMCEPopup.requireLangPack();
tinyMCEPopup.onInit.add(AdvHRDialog.init, AdvHRDialog);

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('ar.advhr_dlg',{
width:"\u0627\u0644\u0639\u0631\u0636",
size:"\u0627\u0644\u0625\u0631\u062A\u0641\u0627\u0639",
noshade:"\u0628\u062F\u0648\u0646 \u0638\u0644"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('bg.advhr_dlg',{
width:"\u0428\u0438\u0440\u0438\u043D\u0430",
size:"\u0412\u0438\u0441\u043E\u0447\u0438\u043D\u0430",
noshade:"\u0411\u0435\u0437 \u0441\u044F\u043D\u043A\u0430"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('br.advhr_dlg',{
width:"Largura",
size:"Altura",
noshade:"Sem sombra"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('bs.advhr_dlg',{
width:"\u0160irina",
size:"Visina",
noshade:"Bez sjene"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('ca.advhr_dlg',{
width:"Amplada",
size:"Al\u00E7ada",
noshade:"Sense ombra"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('ch.advhr_dlg',{
width:"\u5BBD",
size:"\u957F",
noshade:"\u65E0\u9634\u5F71"
});

View File

@@ -1,6 +0,0 @@
// UK lang variables
tinyMCELang['lang_insert_advhr_desc'] = 'Vlo<6C>it/editovat vodorovn<76> odd<64>lova<76>'
tinyMCELang['lang_insert_advhr_width'] = '<27><><EFBFBD>ka';
tinyMCELang['lang_insert_advhr_size'] = 'V<><56>ka';
tinyMCELang['lang_insert_advhr_noshade'] = 'Nest<73>novat';

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('cs.advhr_dlg',{
width:"\u0160\u00ED\u0159ka",
size:"V\u00FD\u0161ka",
noshade:"Bez st\u00EDnu"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('da.advhr_dlg',{
width:"Bredde",
size:"H\u00F8jde",
noshade:"Ingen skygge"
});

View File

@@ -1,6 +0,0 @@
// DE lang variables
tinyMCELang['lang_insert_advhr_desc'] = 'Horizontale Linie einf&uuml;gen / bearbeiten'
tinyMCELang['lang_insert_advhr_width'] = 'Breite';
tinyMCELang['lang_insert_advhr_size'] = 'H&ouml;he';
tinyMCELang['lang_insert_advhr_noshade'] = 'Keinen Schatten';

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('de.advhr_dlg',{
width:"Breite",
size:"H\u00F6he",
noshade:"Kein Schatten"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('dv.advhr_dlg',{
width:"Width",
size:"Height",
noshade:"No shadow"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('el.advhr_dlg',{
width:"\u03A0\u03BB\u03AC\u03C4\u03BF\u03C2",
size:"\u038E\u03C8\u03BF\u03C2",
noshade:"\u03A7\u03C9\u03C1\u03AF\u03C2 \u03C3\u03BA\u03B9\u03AC"
});

View File

@@ -1,6 +0,0 @@
// UK lang variables
tinyMCELang['lang_insert_advhr_desc'] = 'Insert / edit Horizontale Rule'
tinyMCELang['lang_insert_advhr_width'] = 'Width';
tinyMCELang['lang_insert_advhr_size'] = 'Height';
tinyMCELang['lang_insert_advhr_noshade'] = 'No shadow';

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('en.advhr_dlg',{
width:"Width",
size:"Height",
noshade:"No shadow"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('es.advhr_dlg',{
width:"Ancho",
size:"Alto",
noshade:"Sin sombra"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('et.advhr_dlg',{
width:"Laius",
size:"K\u00F5rgus",
noshade:"Ilma varjuta"
});

View File

@@ -1,11 +0,0 @@
// 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_advhr_desc'] = 'درج و ویرایش خط افقی'
tinyMCELang['lang_insert_advhr_width'] = 'عرض';
tinyMCELang['lang_insert_advhr_size'] = 'ارتفاع';
tinyMCELang['lang_insert_advhr_noshade'] = 'بدون سایه';

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('fa.advhr_dlg',{
width:"\u067E\u0647\u0646\u0627",
size:"\u0627\u0631\u062A\u0641\u0627\u0639",
noshade:"\u0628\u062F\u0648\u0646 \u0633\u0627\u06CC\u0647"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('fi.advhr_dlg',{
width:"Leveys",
size:"Korkeus",
noshade:"Ei varjoa"
});

View File

@@ -1,6 +0,0 @@
// French lang variables by Laurent Dran
tinyMCELang['lang_insert_advhr_desc'] = 'Ins&eacute;rer / &eacute;diter une R&#269;gle Horizontale'
tinyMCELang['lang_insert_advhr_width'] = 'Largeur';
tinyMCELang['lang_insert_advhr_size'] = 'Hauteur';
tinyMCELang['lang_insert_advhr_noshade'] = 'Sans ombre';

View File

@@ -1,6 +0,0 @@
// CA_FR lang variables
tinyMCELang['lang_insert_advhr_desc'] = 'Ins<6E>rer / Modifier S<>parateur Horizontal';
tinyMCELang['lang_insert_advhr_width'] = 'Largeur';
tinyMCELang['lang_insert_advhr_size'] = 'Hauteur';
tinyMCELang['lang_insert_advhr_noshade'] = 'Sans ombrage';

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('fr.advhr_dlg',{
width:"Largeur",
size:"Hauteur",
noshade:"Pas d'ombre"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('gl.advhr_dlg',{
width:"Ancho",
size:"Alto",
noshade:"Sen sombra"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('he.advhr_dlg',{
width:"\u05E8\u05D5\u05D7\u05D1",
size:"\u05D2\u05D5\u05D1\u05D4",
noshade:"\u05DC\u05DC\u05D0 \u05E6\u05DC"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('hr.advhr_dlg',{
width:"\u0160irina",
size:"Visina",
noshade:"Bez sjene"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('hu.advhr_dlg',{
width:"Sz\u00E9less\u00E9g",
size:"Magass\u00E1g",
noshade:"\u00C1rny\u00E9k n\u00E9lk\u00FCl"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('ia.advhr_dlg',{
width:"\u5BBD",
size:"\u957F",
noshade:"\u65E0\u9634\u5F71"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('ii.advhr_dlg',{
width:"\u5BBD",
size:"\u957F",
noshade:"\u65E0\u9634\u5F71"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('is.advhr_dlg',{
width:"Breidd",
size:"H\u00E6\u00F0",
noshade:"Enginn skuggi"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('it.advhr_dlg',{
width:"Width",
size:"Height",
noshade:"Senza ombreggiatura"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('ja.advhr_dlg',{
width:"\u5E45",
size:"\u9AD8\u3055",
noshade:"\u5F71\u306A\u3057"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('ko.advhr_dlg',{
width:"\uD3ED",
size:"\uB192\uC774",
noshade:"\uADF8\uB9BC\uC790\uC5C6\uC74C"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('lt.advhr_dlg',{
width:"Ilgis",
size:"Auk\u0161tis",
noshade:"Be \u0161e\u0161\u0117lio"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('lv.advhr_dlg',{
width:"Platums",
size:"Augstums",
noshade:"Bez \u0113nas"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('mk.advhr_dlg',{
width:"\u0160irina",
size:"Visina",
noshade:"Bez sjene"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('mn.advhr_dlg',{
width:"\u04E8\u0440\u0433\u04E9\u043D",
size:"\u04E8\u043D\u0434\u04E9\u0440",
noshade:"\u0421\u04AF\u04AF\u0434\u044D\u0440\u0433\u04AF\u0439"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('ms.advhr_dlg',{
width:"Lebar",
size:"Tinggi",
noshade:"Tanpa bayang"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('nb.advhr_dlg',{
width:"Bredde",
size:"St\u00F8rrelse",
noshade:"Ingen skygge"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('nl.advhr_dlg',{
width:"Breedte",
size:"Hoogte",
noshade:"Geen schaduw"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('nn.advhr_dlg',{
width:"Breidd",
size:"Storleik",
noshade:"Inga skugge"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('pl.advhr_dlg',{
width:"Szeroko\u015B\u0107",
size:"Wysoko\u015B\u0107",
noshade:"Bez cienia"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('pt.advhr_dlg',{
width:"Largura",
size:"Altura",
noshade:"Sem sombra"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('ro.advhr_dlg',{
width:"L\u0103\u0163ime",
size:"\u00CEn\u0103l\u0163ime",
noshade:"F\u0103r\u0103 umbre"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('ru.advhr_dlg',{
width:"\u0428\u0438\u0440\u0438\u043D\u0430",
size:"\u0412\u044B\u0441\u043E\u0442\u0430",
noshade:"\u041D\u0435\u0442 \u0442\u0435\u043D\u0438"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('sc.advhr_dlg',{
width:"\u5BBD",
size:"\u957F",
noshade:"\u65E0\u9634\u5F71"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('se.advhr_dlg',{
width:"Bredd",
size:"H\u00F6jd",
noshade:"Ingen skugga"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('si.advhr_dlg',{
width:"Width",
size:"Height",
noshade:"No shadow"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('sk.advhr_dlg',{
width:"\u0160\u00EDrka",
size:"V\u00FD\u0161ka",
noshade:"Bez tie\u0148a"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('sl.advhr_dlg',{
width:"\u0160irina",
size:"Vi\u0161ina",
noshade:"Brez sen\u010Denja"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('sq.advhr_dlg',{
width:"Gjer\u00EBsia",
size:"Gjat\u00EBsia",
noshade:"Pa hije"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('sr.advhr_dlg',{
width:"\u0160irina",
size:"Visina",
noshade:"Bez sjene"
});

View File

@@ -1,6 +0,0 @@
// SE lang variables
tinyMCELang['lang_insert_advhr_desc'] = 'Skapa / uppdatera Horizontell linie'
tinyMCELang['lang_insert_advhr_width'] = 'Bredd';
tinyMCELang['lang_insert_advhr_size'] = 'H<>jd';
tinyMCELang['lang_insert_advhr_noshade'] = 'Ingen skugga';

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('sv.advhr_dlg',{
width:"Bredd",
size:"H\u00F6jd",
noshade:"Ingen skugga"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('tr.advhr_dlg',{
width:"Geni\u015Flik",
size:"Y\u00FCkseklik",
noshade:"G\u00F6lge yok"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('tt.advhr_dlg',{
width:"\u5BEC",
size:"\u9577",
noshade:"\u7121\u9670\u5F71"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('tw.advhr_dlg',{
width:"\u5BEC",
size:"\u9577",
noshade:"\u7121\u9670\u5F71"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('uk.advhr_dlg',{
width:"\u0428\u0438\u0440\u0438\u043D\u0430",
size:"\u0412\u0438\u0441\u043E\u0442\u0430",
noshade:"\u0411\u0435\u0437 \u0442\u0456\u043D\u0456"
});

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('vi.advhr_dlg',{
width:"Chi\u1EC1u r\u1ED9ng",
size:"Chi\u1EC1u cao",
noshade:"Kh\u00F4ng \u0111\u1ED5 b\u00F3ng"
});

View File

@@ -1,6 +0,0 @@
// Simplified Chinese lang variables contributed by cube316 (cube316@etang.com)
tinyMCELang['lang_insert_advhr_desc'] = '<27><><EFBFBD><EFBFBD>/<2F>༭ ˮƽ<CBAE><C6BD><EFBFBD><EFBFBD>'
tinyMCELang['lang_insert_advhr_width'] = '<27><><EFBFBD><EFBFBD>';
tinyMCELang['lang_insert_advhr_size'] = '<27>߶<EFBFBD>';
tinyMCELang['lang_insert_advhr_noshade'] = '<27><><EFBFBD><EFBFBD>Ӱ';

View File

@@ -0,0 +1,5 @@
tinyMCE.addI18n('zh.advhr_dlg',{
width:"\u5BBD",
size:"\u957F",
noshade:"\u65E0\u9634\u5F71"
});

View File

@@ -1,20 +0,0 @@
Advhr plugin for TinyMCE
-----------------------------
About:
This is a more advanced hr dialog contributed by Michael Keck.
This one supports noshade, width and size.
Installation instructions:
* Copy the advhr directory to the plugins directory of TinyMCE (/jscripts/tiny_mce/plugins).
* Add plugin to TinyMCE plugin option list example: plugins : "advhr".
* Add this "hr[class|width|size|noshade]" to extended_valid_elements option.
Initialization example:
tinyMCE.init({
theme : "advanced",
mode : "textareas",
plugins : "advhr",
theme_advanced_buttons1_add : "advhr",
extended_valid_elements : "hr[class|width|size|noshade]"
});

View File

@@ -1,108 +1,63 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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">
<!--
function init() {
// modified 2004-11-10 by Michael Keck (me@michaelkeck.de)
// supporting onclick event to open pop windows
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);
}
window.focus();
}
function insertHR() {
var formObj = document.forms[0];
if (window.opener) {
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';
}
html += ' />';
tinyMCE.execCommand("mceInsertContent",true,html);
top.close();
}
}
function cancelAction() {
top.close();
}
//-->
</script>
<style type="text/css">
<!--
input.radio {
border: 1px none #000000;
background-color: transparent;
vertical-align: middle;
}
-->
</style>
</head>
<body onload="init();">
<form onsubmit="insertHR();return false;">
<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 name="size" type="text" id="size" value="" 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>
<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>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{#advhr.advhr_desc}</title>
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
<script type="text/javascript" src="js/rule.js"></script>
<script type="text/javascript" src="../../utils/mctabs.js"></script>
<script type="text/javascript" src="../../utils/form_utils.js"></script>
<link href="css/advhr.css" rel="stylesheet" type="text/css" />
<base target="_self" />
</head>
<body>
<form onsubmit="AdvHRDialog.update();return false;" action="#">
<div class="tabs">
<ul>
<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advhr.advhr_desc}</a></span></li>
</ul>
</div>
<div class="panel_wrapper">
<div id="general_panel" class="panel current">
<table border="0" cellpadding="4" cellspacing="0">
<tr>
<td><label for="width">{#advhr_dlg.width}</label></td>
<td nowrap="nowrap">
<input id="width" name="width" type="text" value="" class="mceFocus" />
<select name="width2" id="width2">
<option value="">px</option>
<option value="%">%</option>
</select>
</td>
</tr>
<tr>
<td><label for="size">{#advhr_dlg.size}</label></td>
<td><select id="size" name="size">
<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><label for="noshade">{#advhr_dlg.noshade}</label></td>
<td><input type="checkbox" name="noshade" id="noshade" class="radio" /></td>
</tr>
</table>
</div>
</div>
<div class="mceActionPanel">
<div style="float: left">
<input type="submit" id="insert" name="insert" value="{#insert}" />
</div>
<div style="float: right">
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
</div>
</div>
</form>
</body>
</html>