Redmine 4.1.1

This commit is contained in:
Manuel Cillero 2020-11-22 21:20:06 +01:00
parent 33e7b881a5
commit 3d976f1b3b
1593 changed files with 36180 additions and 19489 deletions

File diff suppressed because one or more lines are too long

View file

@ -7,12 +7,12 @@
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*
* DotClear is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with DotClear; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@ -34,15 +34,46 @@ function jsToolBar(textarea) {
this.textarea = textarea;
this.toolbarBlock = document.createElement('div');
this.toolbarBlock.className = 'jstBlock';
this.textarea.parentNode.insertBefore(this.toolbarBlock, this.textarea);
this.editor = document.createElement('div');
this.editor.className = 'jstEditor';
this.textarea.parentNode.insertBefore(this.editor,this.textarea);
this.preview = document.createElement('div');
this.preview.className = 'wiki wiki-preview hidden';
this.preview.setAttribute('id', 'preview_' + textarea.getAttribute('id'));
this.editor.appendChild(this.textarea);
this.editor.appendChild(this.preview);
this.tabsBlock = document.createElement('div');
this.tabsBlock.className = 'jstTabs tabs';
var This = this;
this.editTab = new jsTab('Edit', true);
this.editTab.onclick = function(event) { This.hidePreview.call(This, event); return false; };
this.previewTab = new jsTab('Preview');
this.previewTab.onclick = function(event) { This.showPreview.call(This, event); return false; };
var elementsTab = document.createElement('li');
elementsTab.classList = 'tab-elements';
var tabs = document.createElement('ul');
tabs.appendChild(this.editTab);
tabs.appendChild(this.previewTab);
tabs.appendChild(elementsTab);
this.tabsBlock.appendChild(tabs);
this.toolbar = document.createElement("div");
this.toolbar.className = 'jstElements';
this.editor.parentNode.insertBefore(this.toolbar,this.editor);
elementsTab.appendChild(this.toolbar);
this.toolbarBlock.appendChild(this.tabsBlock);
this.toolbarBlock.appendChild(this.editor);
// Dragable resizing
if (this.editor.addEventListener && navigator.appVersion.match(/\bMSIE\b/))
@ -53,19 +84,40 @@ function jsToolBar(textarea) {
var This = this;
this.handle.addEventListener('mousedown',function(event) { dragStart.call(This,event); },false);
// fix memory leak in Firefox (bug #241518)
window.addEventListener('unload',function() {
window.addEventListener('unload',function() {
var del = This.handle.parentNode.removeChild(This.handle);
delete(This.handle);
},false);
this.editor.parentNode.insertBefore(this.handle,this.editor.nextSibling);
}
this.context = null;
this.toolNodes = {}; // lorsque la toolbar est dessinée , cet objet est garni
this.toolNodes = {}; // lorsque la toolbar est dessinée , cet objet est garni
// de raccourcis vers les éléments DOM correspondants aux outils.
}
function jsTab(name, selected) {
selected = selected || false;
if(typeof jsToolBar.strings == 'undefined') {
var tabName = name || null;
} else {
var tabName = jsToolBar.strings[name] || name || null;
}
var tab = document.createElement('li');
var link = document.createElement('a');
link.setAttribute('href', '#');
link.innerText = tabName;
link.className = 'tab-' + name.toLowerCase();
if (selected == true) {
link.classList.add('selected');
}
tab.appendChild(link)
return tab;
}
function jsButton(title, fn, scope, className) {
if(typeof jsToolBar.strings == 'undefined') {
this.title = title || null;
@ -91,6 +143,7 @@ jsButton.prototype.draw = function() {
if (this.icon != undefined) {
button.style.backgroundImage = 'url('+this.icon+')';
}
if (typeof(this.fn) == 'function') {
var This = this;
button.onclick = function() { try { This.fn.apply(This.scope, arguments) } catch (e) {} return false; };
@ -110,7 +163,7 @@ jsSpace.prototype.draw = function() {
if (this.width) span.style.marginRight = this.width+'px';
return span;
}
}
function jsCombo(title, options, scope, fn, className) {
this.title = title || null;
@ -136,7 +189,7 @@ jsCombo.prototype.draw = function() {
var This = this;
select.onchange = function() {
try {
try {
This.fn.call(This.scope, this.value);
} catch (e) { alert(e); }
@ -152,7 +205,7 @@ jsToolBar.prototype = {
mode: 'wiki',
elements: {},
help_link: '',
getMode: function() {
return this.mode;
},
@ -170,6 +223,10 @@ jsToolBar.prototype = {
this.help_link = link;
},
setPreviewUrl: function(url) {
this.previewTab.firstChild.setAttribute('data-url', url);
},
button: function(toolName) {
var tool = this.elements[toolName];
if (typeof tool.fn[this.mode] != 'function') return null;
@ -292,7 +349,6 @@ jsToolBar.prototype = {
encloseSelection: function(prefix, suffix, fn) {
this.textarea.focus();
prefix = prefix || '';
suffix = suffix || '';
@ -305,8 +361,13 @@ jsToolBar.prototype = {
end = this.textarea.selectionEnd;
scrollPos = this.textarea.scrollTop;
sel = this.textarea.value.substring(start, end);
if (start > 0 && this.textarea.value.substr(start-1, 1).match(/\S/)) {
prefix = ' ' + prefix;
}
if (this.textarea.value.substr(end, 1).match(/\S/)) {
suffix = suffix + ' ';
}
}
if (sel.match(/ $/)) { // exclude ending space char, if any
sel = sel.substring(0, sel.length - 1);
suffix = suffix + " ";
@ -338,7 +399,24 @@ jsToolBar.prototype = {
this.textarea.scrollTop = scrollPos;
}
},
showPreview: function(event) {
if (event.target.classList.contains('selected')) { return; }
this.preview.setAttribute('style', 'min-height: ' + this.textarea.clientHeight + 'px;')
this.toolbar.classList.add('hidden');
this.textarea.classList.add('hidden');
this.preview.classList.remove('hidden');
this.tabsBlock.getElementsByClassName('tab-edit')[0].classList.remove('selected');
event.target.classList.add('selected');
},
hidePreview: function(event) {
if (event.target.classList.contains('selected')) { return; }
this.toolbar.classList.remove('hidden');
this.textarea.classList.remove('hidden');
this.preview.classList.add('hidden');
this.tabsBlock.getElementsByClassName('tab-preview')[0].classList.remove('selected');
event.target.classList.add('selected');
},
stripBaseURL: function(url) {
if (this.base_url != '') {
var pos = url.indexOf(this.base_url);
@ -375,10 +453,10 @@ jsToolBar.prototype.resizeDragStop = function(event) {
/* Code highlighting menu */
jsToolBar.prototype.precodeMenu = function(fn){
var codeRayLanguages = ["c", "clojure", "cpp", "css", "delphi", "diff", "erb", "go", "groovy", "haml", "html", "java", "javascript", "json", "lua", "php", "python", "ruby", "sass", "sql", "taskpaper", "text", "xml", "yaml"];
var hlLanguages = ["c", "cpp", "csharp", "css", "diff", "go", "groovy", "html", "java", "javascript", "objc", "perl", "php", "python", "r", "ruby", "sass", "scala", "shell", "sql", "swift", "xml", "yaml"];
var menu = $("<ul style='position:absolute;'></ul>");
for (var i = 0; i < codeRayLanguages.length; i++) {
$("<li></li>").text(codeRayLanguages[i]).appendTo(menu).mousedown(function(){
for (var i = 0; i < hlLanguages.length; i++) {
$("<li></li>").text(hlLanguages[i]).appendTo(menu).mousedown(function(){
fn($(this).text());
});
}

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'إزالة الاقتباس';
jsToolBar.strings['Preformatted text'] = 'نص مسبق التنسيق';
jsToolBar.strings['Wiki link'] = 'رابط الى صفحة ويكي';
jsToolBar.strings['Image'] = 'صورة';
jsToolBar.strings['Edit'] = 'تعديل';
jsToolBar.strings['Preview'] = 'معاينة';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Remove Quote';
jsToolBar.strings['Preformatted text'] = 'Preformatted text';
jsToolBar.strings['Wiki link'] = 'Link to a Wiki page';
jsToolBar.strings['Image'] = 'Image';
jsToolBar.strings['Edit'] = 'Redaktə etmək';
jsToolBar.strings['Preview'] = 'İlkin baxış';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Премахване на цитат';
jsToolBar.strings['Preformatted text'] = 'Форматиран текст';
jsToolBar.strings['Wiki link'] = 'Връзка до Wiki страница';
jsToolBar.strings['Image'] = 'Изображение';
jsToolBar.strings['Edit'] = 'Редакция';
jsToolBar.strings['Preview'] = 'Преглед';

View file

@ -13,3 +13,5 @@ jsToolBar.strings['Ordered list'] = 'Ordered list';
jsToolBar.strings['Preformatted text'] = 'Preformatted text';
jsToolBar.strings['Wiki link'] = 'Link na Wiki stranicu';
jsToolBar.strings['Image'] = 'Slika';
jsToolBar.strings['Edit'] = 'Ispravka';
jsToolBar.strings['Preview'] = 'Pregled';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Sense cometes';
jsToolBar.strings['Preformatted text'] = 'Text formatat';
jsToolBar.strings['Wiki link'] = 'Enllaça a una pàgina Wiki';
jsToolBar.strings['Image'] = 'Imatge';
jsToolBar.strings['Edit'] = 'Editar';
jsToolBar.strings['Preview'] = 'Previsualitzar';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Remove Quote';
jsToolBar.strings['Preformatted text'] = 'Předformátovaný text';
jsToolBar.strings['Wiki link'] = 'Vložit odkaz na Wiki stránku';
jsToolBar.strings['Image'] = 'Vložit obrázek';
jsToolBar.strings['Edit'] = 'Upravit';
jsToolBar.strings['Preview'] = 'Náhled';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Fjern citér';
jsToolBar.strings['Preformatted text'] = 'Præformateret tekst';
jsToolBar.strings['Wiki link'] = 'Link til en wiki-side';
jsToolBar.strings['Image'] = 'Billede';
jsToolBar.strings['Edit'] = 'Ret';
jsToolBar.strings['Preview'] = 'Forhåndsvisning';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Remove Quote';
jsToolBar.strings['Preformatted text'] = 'Präformatierter Text';
jsToolBar.strings['Wiki link'] = 'Verweis (Link) zu einer Wiki-Seite';
jsToolBar.strings['Image'] = 'Grafik';
jsToolBar.strings['Edit'] = 'Bearbeiten';
jsToolBar.strings['Preview'] = 'Vorschau';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Remove Quote';
jsToolBar.strings['Preformatted text'] = 'Preformatted text';
jsToolBar.strings['Wiki link'] = 'Link to a Wiki page';
jsToolBar.strings['Image'] = 'Image';
jsToolBar.strings['Edit'] = 'Edit';
jsToolBar.strings['Preview'] = 'Preview';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Remove Quote';
jsToolBar.strings['Preformatted text'] = 'Preformatted text';
jsToolBar.strings['Wiki link'] = 'Link to a Wiki page';
jsToolBar.strings['Image'] = 'Image';
jsToolBar.strings['Edit'] = 'Edit';
jsToolBar.strings['Preview'] = 'Preview';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Quitar cita';
jsToolBar.strings['Preformatted text'] = 'Texto con formato';
jsToolBar.strings['Wiki link'] = 'Enlace a página Wiki';
jsToolBar.strings['Image'] = 'Imagen';
jsToolBar.strings['Edit'] = 'Modificar';
jsToolBar.strings['Preview'] = 'Previsualizar';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Quitar cita';
jsToolBar.strings['Preformatted text'] = 'Texto con formato';
jsToolBar.strings['Wiki link'] = 'Enlace a página Wiki';
jsToolBar.strings['Image'] = 'Imagen';
jsToolBar.strings['Edit'] = 'Modificar';
jsToolBar.strings['Preview'] = 'Previsualizar';

View file

@ -32,3 +32,5 @@ jsToolBar.strings['Unquote'] = 'Tsitaat: aste madalamaks';
jsToolBar.strings['Preformatted text'] = 'Eelvormindatud tekst';
jsToolBar.strings['Wiki link'] = 'Vikilehe link';
jsToolBar.strings['Image'] = 'Pilt';
jsToolBar.strings['Edit'] = 'Muuda';
jsToolBar.strings['Preview'] = 'Eelvaade';

View file

@ -19,3 +19,5 @@ jsToolBar.strings['Unquote'] = 'Aipamena kendu';
jsToolBar.strings['Preformatted text'] = 'Aurrez formateatutako testua';
jsToolBar.strings['Wiki link'] = 'Wiki orri baterako esteka';
jsToolBar.strings['Image'] = 'Irudia';
jsToolBar.strings['Edit'] = 'Editatu';
jsToolBar.strings['Preview'] = 'Aurreikusi';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'بیرون آوردن';
jsToolBar.strings['Preformatted text'] = 'نوشته قالب بندی شده';
jsToolBar.strings['Wiki link'] = 'پیوند به برگ ویکی';
jsToolBar.strings['Image'] = 'عکس';
jsToolBar.strings['Edit'] = 'ویرایش';
jsToolBar.strings['Preview'] = 'پیش‌نمایش';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Remove Quote';
jsToolBar.strings['Preformatted text'] = 'Ennaltamuotoiltu teksti';
jsToolBar.strings['Wiki link'] = 'Linkki Wiki sivulle';
jsToolBar.strings['Image'] = 'Kuva';
jsToolBar.strings['Edit'] = 'Muokkaa';
jsToolBar.strings['Preview'] = 'Esikatselu';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Supprimer indentation';
jsToolBar.strings['Preformatted text'] = 'Texte préformaté';
jsToolBar.strings['Wiki link'] = 'Lien vers une page Wiki';
jsToolBar.strings['Image'] = 'Image';
jsToolBar.strings['Edit'] = 'Modifier';
jsToolBar.strings['Preview'] = 'Prévisualiser';

View file

@ -1,7 +1,7 @@
jsToolBar.strings = {};
jsToolBar.strings['Strong'] = 'Negriña';
jsToolBar.strings['Italic'] = 'Itálica';
jsToolBar.strings['Underline'] = 'Suliñado';
jsToolBar.strings['Underline'] = 'Subliñado';
jsToolBar.strings['Deleted'] = 'Tachado';
jsToolBar.strings['Code'] = 'Código fonte';
jsToolBar.strings['Heading 1'] = 'Encabezado 1';
@ -13,5 +13,7 @@ jsToolBar.strings['Ordered list'] = 'Lista ordenada';
jsToolBar.strings['Quote'] = 'Citar';
jsToolBar.strings['Unquote'] = 'Quitar cita';
jsToolBar.strings['Preformatted text'] = 'Texto con formato';
jsToolBar.strings['Wiki link'] = 'Enlace a páxina Wiki';
jsToolBar.strings['Wiki link'] = 'Ligazón a páxina Wiki';
jsToolBar.strings['Image'] = 'Imaxe';
jsToolBar.strings['Edit'] = 'Modificar';
jsToolBar.strings['Preview'] = 'Vista previa';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Remove Quote';
jsToolBar.strings['Preformatted text'] = 'Preformatted text';
jsToolBar.strings['Wiki link'] = 'Link to a Wiki page';
jsToolBar.strings['Image'] = 'Image';
jsToolBar.strings['Edit'] = 'ערוך';
jsToolBar.strings['Preview'] = 'תצוגה מקדימה';

View file

@ -14,4 +14,6 @@ jsToolBar.strings['Quote'] = 'Citat';
jsToolBar.strings['Unquote'] = 'Ukloni citat';
jsToolBar.strings['Preformatted text'] = 'Izveden tekst';
jsToolBar.strings['Wiki link'] = 'Link na Wiki stranicu';
jsToolBar.strings['Image'] = 'Slika';
jsToolBar.strings['Image'] = 'Slika';
jsToolBar.strings['Edit'] = 'Uredi';
jsToolBar.strings['Preview'] = 'Brzi pregled';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Remove Quote';
jsToolBar.strings['Preformatted text'] = 'Előreformázott szöveg';
jsToolBar.strings['Wiki link'] = 'Link egy Wiki oldalra';
jsToolBar.strings['Image'] = 'Kép';
jsToolBar.strings['Edit'] = 'Szerkeszt';
jsToolBar.strings['Preview'] = 'Előnézet';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Hapus kutipan';
jsToolBar.strings['Preformatted text'] = 'Teks terformat';
jsToolBar.strings['Wiki link'] = 'Tautkan ke halaman wiki';
jsToolBar.strings['Image'] = 'Gambar';
jsToolBar.strings['Edit'] = 'Sunting';
jsToolBar.strings['Preview'] = 'Tinjauan';

View file

@ -18,3 +18,5 @@ jsToolBar.strings['Unquote'] = 'Riduci rientro';
jsToolBar.strings['Preformatted text'] = 'Testo preformattato';
jsToolBar.strings['Wiki link'] = 'Collegamento a pagina Wiki';
jsToolBar.strings['Image'] = 'Immagine';
jsToolBar.strings['Edit'] = 'Modifica';
jsToolBar.strings['Preview'] = 'Anteprima';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = '引用解除';
jsToolBar.strings['Preformatted text'] = '整形済みテキスト';
jsToolBar.strings['Wiki link'] = 'Wikiページへのリンク';
jsToolBar.strings['Image'] = '画像';
jsToolBar.strings['Edit'] = '編集';
jsToolBar.strings['Preview'] = 'プレビュー';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = '인용 취소';
jsToolBar.strings['Preformatted text'] = '있는 그대로 표현 (Preformatted text)';
jsToolBar.strings['Wiki link'] = 'Wiki 페이지에 연결';
jsToolBar.strings['Image'] = '그림';
jsToolBar.strings['Edit'] = '편집';
jsToolBar.strings['Preview'] = '미리보기';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Pašalinti citavimą';
jsToolBar.strings['Preformatted text'] = 'Preformatuotas tekstas';
jsToolBar.strings['Wiki link'] = 'Nuoroda į Wiki puslapį';
jsToolBar.strings['Image'] = 'Paveikslas';
jsToolBar.strings['Edit'] = 'Redaguoti';
jsToolBar.strings['Preview'] = 'Peržiūra';

View file

@ -16,3 +16,5 @@ jsToolBar.strings['Unquote'] = 'Noņemt citātu';
jsToolBar.strings['Preformatted text'] = 'Iepriekš formatēts teksts';
jsToolBar.strings['Wiki link'] = 'Saite uz Wiki lapu';
jsToolBar.strings['Image'] = 'Attēls';
jsToolBar.strings['Edit'] = 'Labot';
jsToolBar.strings['Preview'] = 'Priekšskatījums';

View file

@ -15,4 +15,5 @@ jsToolBar.strings['Unquote'] = 'Отстрани цитат';
jsToolBar.strings['Preformatted text'] = 'Форматиран текст';
jsToolBar.strings['Wiki link'] = 'Врска до вики страна';
jsToolBar.strings['Image'] = 'Слика';
jsToolBar.strings['Edit'] = 'Уреди';
jsToolBar.strings['Preview'] = 'Preview';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Ишлэлийг устгах';
jsToolBar.strings['Preformatted text'] = 'Өмнө нь хэлбэржсэн текст';
jsToolBar.strings['Wiki link'] = 'Вики хуудас руу холбох';
jsToolBar.strings['Image'] = 'Зураг';
jsToolBar.strings['Edit'] = 'Засварлах';
jsToolBar.strings['Preview'] = 'Ямар харагдахыг шалгах';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Citaat verwijderen';
jsToolBar.strings['Preformatted text'] = 'Vooropgemaakte tekst';
jsToolBar.strings['Wiki link'] = 'Link naar een Wikipagina';
jsToolBar.strings['Image'] = 'Afbeelding';
jsToolBar.strings['Edit'] = 'Bewerken';
jsToolBar.strings['Preview'] = 'Voorbeeldweergave';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Avslutt sitat';
jsToolBar.strings['Preformatted text'] = 'Preformatert tekst';
jsToolBar.strings['Wiki link'] = 'Lenke til Wiki-side';
jsToolBar.strings['Image'] = 'Bilde';
jsToolBar.strings['Edit'] = 'Endre';
jsToolBar.strings['Preview'] = 'Forhåndsvis';

View file

@ -16,3 +16,5 @@ jsToolBar.strings['Unquote'] = 'Usuń cytat';
jsToolBar.strings['Preformatted text'] = 'Sformatowany tekst';
jsToolBar.strings['Wiki link'] = 'Odnośnik do strony Wiki';
jsToolBar.strings['Image'] = 'Obraz';
jsToolBar.strings['Edit'] = 'Edytuj';
jsToolBar.strings['Preview'] = 'Podgląd';

View file

@ -17,3 +17,5 @@ jsToolBar.strings['Unquote'] = 'Remover identação';
jsToolBar.strings['Preformatted text'] = 'Texto pré-formatado';
jsToolBar.strings['Wiki link'] = 'Link para uma página Wiki';
jsToolBar.strings['Image'] = 'Imagem';
jsToolBar.strings['Edit'] = 'Editar';
jsToolBar.strings['Preview'] = 'Pré-visualizar';

View file

@ -16,3 +16,5 @@ jsToolBar.strings['Unquote'] = 'Remover citação';
jsToolBar.strings['Preformatted text'] = 'Texto pré-formatado';
jsToolBar.strings['Wiki link'] = 'Link para uma página da Wiki';
jsToolBar.strings['Image'] = 'Imagem';
jsToolBar.strings['Edit'] = 'Editar';
jsToolBar.strings['Preview'] = 'Pré-visualizar';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Fără citat';
jsToolBar.strings['Preformatted text'] = 'Text preformatat';
jsToolBar.strings['Wiki link'] = 'Trimitere către o pagină wiki';
jsToolBar.strings['Image'] = 'Imagine';
jsToolBar.strings['Edit'] = 'Editează';
jsToolBar.strings['Preview'] = 'Previzualizare';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Удалить цитату';
jsToolBar.strings['Preformatted text'] = 'Заранее форматированный текст';
jsToolBar.strings['Wiki link'] = 'Ссылка на страницу в Wiki';
jsToolBar.strings['Image'] = 'Вставка изображения';
jsToolBar.strings['Edit'] = 'Редактирование';
jsToolBar.strings['Preview'] = 'Предпросмотр';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Zrušiť odsadenie';
jsToolBar.strings['Preformatted text'] = 'Predformátovaný text';
jsToolBar.strings['Wiki link'] = 'Odkaz na wikistránku';
jsToolBar.strings['Image'] = 'Obrázok';
jsToolBar.strings['Edit'] = 'Upraviť';
jsToolBar.strings['Preview'] = 'Náhľad';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Odstrani citat';
jsToolBar.strings['Preformatted text'] = 'Predoblikovano besedilo';
jsToolBar.strings['Wiki link'] = 'Povezava na Wiki stran';
jsToolBar.strings['Image'] = 'Slika';
jsToolBar.strings['Edit'] = 'Uredi';
jsToolBar.strings['Preview'] = 'Predogled';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Remove Quote';
jsToolBar.strings['Preformatted text'] = 'Preformatted text';
jsToolBar.strings['Wiki link'] = 'Link to a Wiki page';
jsToolBar.strings['Image'] = 'Image';
jsToolBar.strings['Edit'] = 'Edit';
jsToolBar.strings['Preview'] = 'Preview';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Ukloni navodnike';
jsToolBar.strings['Preformatted text'] = 'Prethodno formatiran tekst';
jsToolBar.strings['Wiki link'] = 'Veza prema Wiki strani';
jsToolBar.strings['Image'] = 'Slika';
jsToolBar.strings['Edit'] = 'Izmeni';
jsToolBar.strings['Preview'] = 'Pregled';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Уклони наводнике';
jsToolBar.strings['Preformatted text'] = 'Претходно форматиран текст';
jsToolBar.strings['Wiki link'] = 'Веза према Wiki страни';
jsToolBar.strings['Image'] = 'Слика';
jsToolBar.strings['Edit'] = 'Измени';
jsToolBar.strings['Preview'] = 'Преглед';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Ta bort citat';
jsToolBar.strings['Preformatted text'] = 'Förformaterad text';
jsToolBar.strings['Wiki link'] = 'Länk till en wikisida';
jsToolBar.strings['Image'] = 'Bild';
jsToolBar.strings['Edit'] = 'Ändra';
jsToolBar.strings['Preview'] = 'Förhandsgranska';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Remove Quote';
jsToolBar.strings['Preformatted text'] = 'รูปแบบข้อความคงที่';
jsToolBar.strings['Wiki link'] = 'เชื่อมโยงไปหน้า Wiki อื่น';
jsToolBar.strings['Image'] = 'รูปภาพ';
jsToolBar.strings['Edit'] = 'แก้ไข';
jsToolBar.strings['Preview'] = 'ตัวอย่างก่อนจัดเก็บ';

View file

@ -13,3 +13,5 @@ jsToolBar.strings['Ordered list'] = 'Sıralı liste';
jsToolBar.strings['Preformatted text'] = 'Preformatted text';
jsToolBar.strings['Wiki link'] = 'Wiki sayfasına bağlantı';
jsToolBar.strings['Image'] = 'Resim';
jsToolBar.strings['Edit'] = 'Düzenle';
jsToolBar.strings['Preview'] = 'Önizleme';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Видалити цитування';
jsToolBar.strings['Preformatted text'] = 'Попередньо відформатований текст';
jsToolBar.strings['Wiki link'] = 'Посилання на сторінку Wiki';
jsToolBar.strings['Image'] = 'Зображення';
jsToolBar.strings['Edit'] = 'Редагувати';
jsToolBar.strings['Preview'] = 'Попередній перегляд';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = 'Bỏ trích dẫn';
jsToolBar.strings['Preformatted text'] = 'Mã nguồn';
jsToolBar.strings['Wiki link'] = 'Liên kết đến trang wiki';
jsToolBar.strings['Image'] = 'Ảnh';
jsToolBar.strings['Edit'] = 'Sửa';
jsToolBar.strings['Preview'] = 'Xem trước';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = '取消引文';
jsToolBar.strings['Preformatted text'] = '已格式文字';
jsToolBar.strings['Wiki link'] = '連結至 Wiki 頁面';
jsToolBar.strings['Image'] = '圖片';
jsToolBar.strings['Edit'] = '編輯';
jsToolBar.strings['Preview'] = '預覽';

View file

@ -15,3 +15,5 @@ jsToolBar.strings['Unquote'] = '删除引用';
jsToolBar.strings['Preformatted text'] = '格式化文本';
jsToolBar.strings['Wiki link'] = '连接到 Wiki 页面';
jsToolBar.strings['Image'] = '图片';
jsToolBar.strings['Edit'] = '编辑';
jsToolBar.strings['Preview'] = '预览';

View file

@ -40,6 +40,15 @@ jsToolBar.prototype.elements.em = {
}
}
// ins
jsToolBar.prototype.elements.ins = {
type: 'button',
title: 'Underline',
fn: {
wiki: function() { this.singleTag('_') }
}
}
// del
jsToolBar.prototype.elements.del = {
type: 'button',
@ -166,7 +175,7 @@ jsToolBar.prototype.elements.pre = {
type: 'button',
title: 'Preformatted text',
fn: {
wiki: function() { this.encloseLineSelection('~~~\n', '\n~~~') }
wiki: function() { this.encloseLineSelection('```\n', '\n```') }
}
}
@ -178,7 +187,7 @@ jsToolBar.prototype.elements.precode = {
wiki: function() {
var This = this;
this.precodeMenu(function(lang){
This.encloseLineSelection('~~~ ' + lang + '\n', '\n~~~\n');
This.encloseLineSelection('``` ' + lang + '\n', '\n```\n');
});
}
}