##// END OF EJS Templates
New icons for the wiki toolbar (from http://www.famfamfam.com/lab/icons/silk/)....
Jean-Philippe Lang -
r1103:09cfef094cc9
parent child
Show More
1 NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
@@ -1,526 +1,517
1 1 /* ***** BEGIN LICENSE BLOCK *****
2 2 * This file is part of DotClear.
3 3 * Copyright (c) 2005 Nicolas Martin & Olivier Meunier and contributors. All
4 4 * rights reserved.
5 5 *
6 6 * DotClear is free software; you can redistribute it and/or modify
7 7 * it under the terms of the GNU General Public License as published by
8 8 * the Free Software Foundation; either version 2 of the License, or
9 9 * (at your option) any later version.
10 10 *
11 11 * DotClear is distributed in the hope that it will be useful,
12 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 14 * GNU General Public License for more details.
15 15 *
16 16 * You should have received a copy of the GNU General Public License
17 17 * along with DotClear; if not, write to the Free Software
18 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 19 *
20 20 * ***** END LICENSE BLOCK *****
21 21 */
22 22
23 23 /* Modified by JP LANG for textile formatting */
24 24
25 25 function jsToolBar(textarea) {
26 26 if (!document.createElement) { return; }
27 27
28 28 if (!textarea) { return; }
29 29
30 30 if ((typeof(document["selection"]) == "undefined")
31 31 && (typeof(textarea["setSelectionRange"]) == "undefined")) {
32 32 return;
33 33 }
34 34
35 35 this.textarea = textarea;
36 36
37 37 this.editor = document.createElement('div');
38 38 this.editor.className = 'jstEditor';
39 39
40 40 this.textarea.parentNode.insertBefore(this.editor,this.textarea);
41 41 this.editor.appendChild(this.textarea);
42 42
43 43 this.toolbar = document.createElement("div");
44 44 this.toolbar.className = 'jstElements';
45 45 this.editor.parentNode.insertBefore(this.toolbar,this.editor);
46 46
47 47 // Dragable resizing (only for gecko)
48 48 if (this.editor.addEventListener)
49 49 {
50 50 this.handle = document.createElement('div');
51 51 this.handle.className = 'jstHandle';
52 52 var dragStart = this.resizeDragStart;
53 53 var This = this;
54 54 this.handle.addEventListener('mousedown',function(event) { dragStart.call(This,event); },false);
55 55 // fix memory leak in Firefox (bug #241518)
56 56 window.addEventListener('unload',function() {
57 57 var del = This.handle.parentNode.removeChild(This.handle);
58 58 delete(This.handle);
59 59 },false);
60 60
61 61 this.editor.parentNode.insertBefore(this.handle,this.editor.nextSibling);
62 62 }
63 63
64 64 this.context = null;
65 65 this.toolNodes = {}; // lorsque la toolbar est dessinée , cet objet est garni
66 66 // de raccourcis vers les éléments DOM correspondants aux outils.
67 67 }
68 68
69 69 function jsButton(title, fn, scope, className) {
70 70 if(typeof jsToolBar.strings == 'undefined') {
71 71 this.title = title || null;
72 72 } else {
73 73 this.title = jsToolBar.strings[title] || title || null;
74 74 }
75 75 this.fn = fn || function(){};
76 76 this.scope = scope || null;
77 77 this.className = className || null;
78 78 }
79 79 jsButton.prototype.draw = function() {
80 80 if (!this.scope) return null;
81 81
82 82 var button = document.createElement('button');
83 83 button.setAttribute('type','button');
84 84 button.tabIndex = 200;
85 85 if (this.className) button.className = this.className;
86 86 button.title = this.title;
87 87 var span = document.createElement('span');
88 88 span.appendChild(document.createTextNode(this.title));
89 89 button.appendChild(span);
90 90
91 91 if (this.icon != undefined) {
92 92 button.style.backgroundImage = 'url('+this.icon+')';
93 93 }
94 94 if (typeof(this.fn) == 'function') {
95 95 var This = this;
96 96 button.onclick = function() { try { This.fn.apply(This.scope, arguments) } catch (e) {} return false; };
97 97 }
98 98 return button;
99 99 }
100 100
101 101 function jsSpace(id) {
102 102 this.id = id || null;
103 103 this.width = null;
104 104 }
105 105 jsSpace.prototype.draw = function() {
106 106 var span = document.createElement('span');
107 107 if (this.id) span.id = this.id;
108 108 span.appendChild(document.createTextNode(String.fromCharCode(160)));
109 109 span.className = 'jstSpacer';
110 110 if (this.width) span.style.marginRight = this.width+'px';
111 111
112 112 return span;
113 113 }
114 114
115 115 function jsCombo(title, options, scope, fn, className) {
116 116 this.title = title || null;
117 117 this.options = options || null;
118 118 this.scope = scope || null;
119 119 this.fn = fn || function(){};
120 120 this.className = className || null;
121 121 }
122 122 jsCombo.prototype.draw = function() {
123 123 if (!this.scope || !this.options) return null;
124 124
125 125 var select = document.createElement('select');
126 126 if (this.className) select.className = className;
127 127 select.title = this.title;
128 128
129 129 for (var o in this.options) {
130 130 //var opt = this.options[o];
131 131 var option = document.createElement('option');
132 132 option.value = o;
133 133 option.appendChild(document.createTextNode(this.options[o]));
134 134 select.appendChild(option);
135 135 }
136 136
137 137 var This = this;
138 138 select.onchange = function() {
139 139 try {
140 140 This.fn.call(This.scope, this.value);
141 141 } catch (e) { alert(e); }
142 142
143 143 return false;
144 144 }
145 145
146 146 return select;
147 147 }
148 148
149 149
150 150 jsToolBar.prototype = {
151 151 base_url: '',
152 152 mode: 'wiki',
153 153 elements: {},
154 154
155 155 getMode: function() {
156 156 return this.mode;
157 157 },
158 158
159 159 setMode: function(mode) {
160 160 this.mode = mode || 'wiki';
161 161 },
162 162
163 163 switchMode: function(mode) {
164 164 mode = mode || 'wiki';
165 165 this.draw(mode);
166 166 },
167 167
168 168 button: function(toolName) {
169 169 var tool = this.elements[toolName];
170 170 if (typeof tool.fn[this.mode] != 'function') return null;
171 171 var b = new jsButton(tool.title, tool.fn[this.mode], this, 'jstb_'+toolName);
172 172 if (tool.icon != undefined) b.icon = tool.icon;
173 173 return b;
174 174 },
175 175 space: function(toolName) {
176 176 var tool = new jsSpace(toolName)
177 177 if (this.elements[toolName].width !== undefined)
178 178 tool.width = this.elements[toolName].width;
179 179 return tool;
180 180 },
181 181 combo: function(toolName) {
182 182 var tool = this.elements[toolName];
183 183 var length = tool[this.mode].list.length;
184 184
185 185 if (typeof tool[this.mode].fn != 'function' || length == 0) {
186 186 return null;
187 187 } else {
188 188 var options = {};
189 189 for (var i=0; i < length; i++) {
190 190 var opt = tool[this.mode].list[i];
191 191 options[opt] = tool.options[opt];
192 192 }
193 193 return new jsCombo(tool.title, options, this, tool[this.mode].fn);
194 194 }
195 195 },
196 196 draw: function(mode) {
197 197 this.setMode(mode);
198 198
199 199 // Empty toolbar
200 200 while (this.toolbar.hasChildNodes()) {
201 201 this.toolbar.removeChild(this.toolbar.firstChild)
202 202 }
203 203 this.toolNodes = {}; // vide les raccourcis DOM/**/
204 204
205 205 // Draw toolbar elements
206 206 var b, tool, newTool;
207 207
208 208 for (var i in this.elements) {
209 209 b = this.elements[i];
210 210
211 211 var disabled =
212 212 b.type == undefined || b.type == ''
213 213 || (b.disabled != undefined && b.disabled)
214 214 || (b.context != undefined && b.context != null && b.context != this.context);
215 215
216 216 if (!disabled && typeof this[b.type] == 'function') {
217 217 tool = this[b.type](i);
218 218 if (tool) newTool = tool.draw();
219 219 if (newTool) {
220 220 this.toolNodes[i] = newTool; //mémorise l'accès DOM pour usage éventuel ultérieur
221 221 this.toolbar.appendChild(newTool);
222 222 }
223 223 }
224 224 }
225 225 },
226 226
227 227 singleTag: function(stag,etag) {
228 228 stag = stag || null;
229 229 etag = etag || stag;
230 230
231 231 if (!stag || !etag) { return; }
232 232
233 233 this.encloseSelection(stag,etag);
234 234 },
235 235
236 236 encloseLineSelection: function(prefix, suffix, fn) {
237 237 this.textarea.focus();
238 238
239 239 prefix = prefix || '';
240 240 suffix = suffix || '';
241 241
242 242 var start, end, sel, scrollPos, subst, res;
243 243
244 244 if (typeof(document["selection"]) != "undefined") {
245 245 sel = document.selection.createRange().text;
246 246 } else if (typeof(this.textarea["setSelectionRange"]) != "undefined") {
247 247 start = this.textarea.selectionStart;
248 248 end = this.textarea.selectionEnd;
249 249 scrollPos = this.textarea.scrollTop;
250 250 // go to the start of the line
251 251 start = this.textarea.value.substring(0, start).replace(/[^\r\n]*$/g,'').length;
252 252 // go to the end of the line
253 253 end = this.textarea.value.length - this.textarea.value.substring(end, this.textarea.value.length).replace(/^[^\r\n]*/, '').length;
254 254 sel = this.textarea.value.substring(start, end);
255 255 }
256 256
257 257 if (sel.match(/ $/)) { // exclude ending space char, if any
258 258 sel = sel.substring(0, sel.length - 1);
259 259 suffix = suffix + " ";
260 260 }
261 261
262 262 if (typeof(fn) == 'function') {
263 263 res = (sel) ? fn.call(this,sel) : fn('');
264 264 } else {
265 265 res = (sel) ? sel : '';
266 266 }
267 267
268 268 subst = prefix + res + suffix;
269 269
270 270 if (typeof(document["selection"]) != "undefined") {
271 271 document.selection.createRange().text = subst;
272 272 var range = this.textarea.createTextRange();
273 273 range.collapse(false);
274 274 range.move('character', -suffix.length);
275 275 range.select();
276 276 } else if (typeof(this.textarea["setSelectionRange"]) != "undefined") {
277 277 this.textarea.value = this.textarea.value.substring(0, start) + subst +
278 278 this.textarea.value.substring(end);
279 279 if (sel) {
280 280 this.textarea.setSelectionRange(start + subst.length, start + subst.length);
281 281 } else {
282 282 this.textarea.setSelectionRange(start + prefix.length, start + prefix.length);
283 283 }
284 284 this.textarea.scrollTop = scrollPos;
285 285 }
286 286 },
287 287
288 288 encloseSelection: function(prefix, suffix, fn) {
289 289 this.textarea.focus();
290 290
291 291 prefix = prefix || '';
292 292 suffix = suffix || '';
293 293
294 294 var start, end, sel, scrollPos, subst, res;
295 295
296 296 if (typeof(document["selection"]) != "undefined") {
297 297 sel = document.selection.createRange().text;
298 298 } else if (typeof(this.textarea["setSelectionRange"]) != "undefined") {
299 299 start = this.textarea.selectionStart;
300 300 end = this.textarea.selectionEnd;
301 301 scrollPos = this.textarea.scrollTop;
302 302 sel = this.textarea.value.substring(start, end);
303 303 }
304 304
305 305 if (sel.match(/ $/)) { // exclude ending space char, if any
306 306 sel = sel.substring(0, sel.length - 1);
307 307 suffix = suffix + " ";
308 308 }
309 309
310 310 if (typeof(fn) == 'function') {
311 311 res = (sel) ? fn.call(this,sel) : fn('');
312 312 } else {
313 313 res = (sel) ? sel : '';
314 314 }
315 315
316 316 subst = prefix + res + suffix;
317 317
318 318 if (typeof(document["selection"]) != "undefined") {
319 319 document.selection.createRange().text = subst;
320 320 var range = this.textarea.createTextRange();
321 321 range.collapse(false);
322 322 range.move('character', -suffix.length);
323 323 range.select();
324 324 // this.textarea.caretPos -= suffix.length;
325 325 } else if (typeof(this.textarea["setSelectionRange"]) != "undefined") {
326 326 this.textarea.value = this.textarea.value.substring(0, start) + subst +
327 327 this.textarea.value.substring(end);
328 328 if (sel) {
329 329 this.textarea.setSelectionRange(start + subst.length, start + subst.length);
330 330 } else {
331 331 this.textarea.setSelectionRange(start + prefix.length, start + prefix.length);
332 332 }
333 333 this.textarea.scrollTop = scrollPos;
334 334 }
335 335 },
336 336
337 337 stripBaseURL: function(url) {
338 338 if (this.base_url != '') {
339 339 var pos = url.indexOf(this.base_url);
340 340 if (pos == 0) {
341 341 url = url.substr(this.base_url.length);
342 342 }
343 343 }
344 344
345 345 return url;
346 346 }
347 347 };
348 348
349 349 /** Resizer
350 350 -------------------------------------------------------- */
351 351 jsToolBar.prototype.resizeSetStartH = function() {
352 352 this.dragStartH = this.textarea.offsetHeight + 0;
353 353 };
354 354 jsToolBar.prototype.resizeDragStart = function(event) {
355 355 var This = this;
356 356 this.dragStartY = event.clientY;
357 357 this.resizeSetStartH();
358 358 document.addEventListener('mousemove', this.dragMoveHdlr=function(event){This.resizeDragMove(event);}, false);
359 359 document.addEventListener('mouseup', this.dragStopHdlr=function(event){This.resizeDragStop(event);}, false);
360 360 };
361 361
362 362 jsToolBar.prototype.resizeDragMove = function(event) {
363 363 this.textarea.style.height = (this.dragStartH+event.clientY-this.dragStartY)+'px';
364 364 };
365 365
366 366 jsToolBar.prototype.resizeDragStop = function(event) {
367 367 document.removeEventListener('mousemove', this.dragMoveHdlr, false);
368 368 document.removeEventListener('mouseup', this.dragStopHdlr, false);
369 369 };
370 370
371 371 // Elements definition ------------------------------------
372 372
373 373 // strong
374 374 jsToolBar.prototype.elements.strong = {
375 375 type: 'button',
376 376 title: 'Strong',
377 377 fn: {
378 378 wiki: function() { this.singleTag('*') }
379 379 }
380 380 }
381 381
382 382 // em
383 383 jsToolBar.prototype.elements.em = {
384 384 type: 'button',
385 385 title: 'Italic',
386 386 fn: {
387 387 wiki: function() { this.singleTag("_") }
388 388 }
389 389 }
390 390
391 391 // ins
392 392 jsToolBar.prototype.elements.ins = {
393 393 type: 'button',
394 394 title: 'Underline',
395 395 fn: {
396 396 wiki: function() { this.singleTag('+') }
397 397 }
398 398 }
399 399
400 400 // del
401 401 jsToolBar.prototype.elements.del = {
402 402 type: 'button',
403 403 title: 'Deleted',
404 404 fn: {
405 405 wiki: function() { this.singleTag('-') }
406 406 }
407 407 }
408 408
409 // quote
410 jsToolBar.prototype.elements.quote = {
411 type: 'button',
412 title: 'Inline quote',
413 fn: {
414 wiki: function() { this.singleTag('??') }
415 }
416 }
417
418 409 // code
419 410 jsToolBar.prototype.elements.code = {
420 411 type: 'button',
421 412 title: 'Code',
422 413 fn: {
423 414 wiki: function() { this.singleTag('@') }
424 415 }
425 416 }
426 417
427 418 // spacer
428 419 jsToolBar.prototype.elements.space1 = {type: 'space'}
429 420
430 421 // headings
431 422 jsToolBar.prototype.elements.h1 = {
432 423 type: 'button',
433 424 title: 'Heading 1',
434 425 fn: {
435 426 wiki: function() {
436 427 this.encloseLineSelection('h1. ', '',function(str) {
437 428 str = str.replace(/^h\d+\.\s+/, '')
438 429 return str;
439 430 });
440 431 }
441 432 }
442 433 }
443 434 jsToolBar.prototype.elements.h2 = {
444 435 type: 'button',
445 436 title: 'Heading 2',
446 437 fn: {
447 438 wiki: function() {
448 439 this.encloseLineSelection('h2. ', '',function(str) {
449 440 str = str.replace(/^h\d+\.\s+/, '')
450 441 return str;
451 442 });
452 443 }
453 444 }
454 445 }
455 446 jsToolBar.prototype.elements.h3 = {
456 447 type: 'button',
457 448 title: 'Heading 3',
458 449 fn: {
459 450 wiki: function() {
460 451 this.encloseLineSelection('h3. ', '',function(str) {
461 452 str = str.replace(/^h\d+\.\s+/, '')
462 453 return str;
463 454 });
464 455 }
465 456 }
466 457 }
467 458
468 459 // spacer
469 460 jsToolBar.prototype.elements.space2 = {type: 'space'}
470 461
471 462 // ul
472 463 jsToolBar.prototype.elements.ul = {
473 464 type: 'button',
474 465 title: 'Unordered list',
475 466 fn: {
476 467 wiki: function() {
477 468 this.encloseLineSelection('','',function(str) {
478 469 str = str.replace(/\r/g,'');
479 470 return str.replace(/(\n|^)[#-]?\s*/g,"$1* ");
480 471 });
481 472 }
482 473 }
483 474 }
484 475
485 476 // ol
486 477 jsToolBar.prototype.elements.ol = {
487 478 type: 'button',
488 479 title: 'Ordered list',
489 480 fn: {
490 481 wiki: function() {
491 482 this.encloseLineSelection('','',function(str) {
492 483 str = str.replace(/\r/g,'');
493 484 return str.replace(/(\n|^)[*-]?\s*/g,"$1# ");
494 485 });
495 486 }
496 487 }
497 488 }
498 489
499 490 // pre
500 491 jsToolBar.prototype.elements.pre = {
501 492 type: 'button',
502 493 title: 'Preformatted text',
503 494 fn: {
504 495 wiki: function() { this.encloseLineSelection('<pre>\n', '\n</pre>') }
505 496 }
506 497 }
507 498
508 499 // spacer
509 500 jsToolBar.prototype.elements.space3 = {type: 'space'}
510 501
511 502 // wiki page
512 503 jsToolBar.prototype.elements.link = {
513 504 type: 'button',
514 505 title: 'Wiki link',
515 506 fn: {
516 507 wiki: function() { this.encloseSelection("[[", "]]") }
517 508 }
518 509 }
519 510 // image
520 511 jsToolBar.prototype.elements.img = {
521 512 type: 'button',
522 513 title: 'Image',
523 514 fn: {
524 515 wiki: function() { this.encloseSelection("!", "!") }
525 516 }
526 517 }
@@ -1,15 +1,14
1 1 jsToolBar.strings = {};
2 2 jsToolBar.strings['Strong'] = 'Strong';
3 3 jsToolBar.strings['Italic'] = 'Italic';
4 4 jsToolBar.strings['Underline'] = 'Underline';
5 5 jsToolBar.strings['Deleted'] = 'Deleted';
6 jsToolBar.strings['Inline quote'] = 'Inline quote';
7 jsToolBar.strings['Code'] = 'Code';
6 jsToolBar.strings['Code'] = 'Inline Code';
8 7 jsToolBar.strings['Heading 1'] = 'Heading 1';
9 8 jsToolBar.strings['Heading 2'] = 'Heading 2';
10 9 jsToolBar.strings['Heading 3'] = 'Heading 3';
11 10 jsToolBar.strings['Unordered list'] = 'Unordered list';
12 11 jsToolBar.strings['Ordered list'] = 'Ordered list';
13 12 jsToolBar.strings['Preformatted text'] = 'Preformatted text';
14 13 jsToolBar.strings['Wiki link'] = 'Link to a Wiki page';
15 14 jsToolBar.strings['Image'] = 'Image';
@@ -1,15 +1,14
1 1 jsToolBar.strings = {};
2 2 jsToolBar.strings['Strong'] = 'Tučné';
3 3 jsToolBar.strings['Italic'] = 'Kurzíva';
4 4 jsToolBar.strings['Underline'] = 'Podtržené';
5 5 jsToolBar.strings['Deleted'] = 'Přeškrtnuté ';
6 jsToolBar.strings['Inline quote'] = 'Citace';
7 6 jsToolBar.strings['Code'] = 'Zobrazení kódu';
8 7 jsToolBar.strings['Heading 1'] = 'Záhlaví 1';
9 8 jsToolBar.strings['Heading 2'] = 'Záhlaví 2';
10 9 jsToolBar.strings['Heading 3'] = 'Záhlaví 3';
11 10 jsToolBar.strings['Unordered list'] = 'Seznam';
12 11 jsToolBar.strings['Ordered list'] = 'Uspořádaný seznam';
13 12 jsToolBar.strings['Preformatted text'] = 'Předformátovaný text';
14 13 jsToolBar.strings['Wiki link'] = 'Vložit odkaz na Wiki stránku';
15 14 jsToolBar.strings['Image'] = 'Vložit obrázek';
@@ -1,15 +1,14
1 1 jsToolBar.strings = {};
2 2 jsToolBar.strings['Strong'] = 'Fett';
3 3 jsToolBar.strings['Italic'] = 'Kursiv';
4 4 jsToolBar.strings['Underline'] = 'Unterstrichen';
5 5 jsToolBar.strings['Deleted'] = 'Durchgestrichen';
6 jsToolBar.strings['Inline quote'] = 'Inline-Zitat';
7 6 jsToolBar.strings['Code'] = 'Quelltext';
8 7 jsToolBar.strings['Heading 1'] = 'Überschrift 1. Ordnung';
9 8 jsToolBar.strings['Heading 2'] = 'Überschrift 2. Ordnung';
10 9 jsToolBar.strings['Heading 3'] = 'Überschrift 3. Ordnung';
11 10 jsToolBar.strings['Unordered list'] = 'Aufzählungsliste';
12 11 jsToolBar.strings['Ordered list'] = 'Nummerierte Liste';
13 12 jsToolBar.strings['Preformatted text'] = 'Präformatierter Text';
14 13 jsToolBar.strings['Wiki link'] = 'Verweis (Link) zu einer Wiki-Seite';
15 14 jsToolBar.strings['Image'] = 'Grafik';
@@ -1,15 +1,14
1 1 jsToolBar.strings = {};
2 2 jsToolBar.strings['Strong'] = 'Strong';
3 3 jsToolBar.strings['Italic'] = 'Italic';
4 4 jsToolBar.strings['Underline'] = 'Underline';
5 5 jsToolBar.strings['Deleted'] = 'Deleted';
6 jsToolBar.strings['Inline quote'] = 'Inline quote';
7 jsToolBar.strings['Code'] = 'Code';
6 jsToolBar.strings['Code'] = 'Inline Code';
8 7 jsToolBar.strings['Heading 1'] = 'Heading 1';
9 8 jsToolBar.strings['Heading 2'] = 'Heading 2';
10 9 jsToolBar.strings['Heading 3'] = 'Heading 3';
11 10 jsToolBar.strings['Unordered list'] = 'Unordered list';
12 11 jsToolBar.strings['Ordered list'] = 'Ordered list';
13 12 jsToolBar.strings['Preformatted text'] = 'Preformatted text';
14 13 jsToolBar.strings['Wiki link'] = 'Link to a Wiki page';
15 14 jsToolBar.strings['Image'] = 'Image';
@@ -1,15 +1,14
1 1 jsToolBar.strings = {};
2 2 jsToolBar.strings['Strong'] = 'Strong';
3 3 jsToolBar.strings['Italic'] = 'Italic';
4 4 jsToolBar.strings['Underline'] = 'Underline';
5 5 jsToolBar.strings['Deleted'] = 'Deleted';
6 jsToolBar.strings['Inline quote'] = 'Inline quote';
7 jsToolBar.strings['Code'] = 'Code';
6 jsToolBar.strings['Code'] = 'Inline Code';
8 7 jsToolBar.strings['Heading 1'] = 'Heading 1';
9 8 jsToolBar.strings['Heading 2'] = 'Heading 2';
10 9 jsToolBar.strings['Heading 3'] = 'Heading 3';
11 10 jsToolBar.strings['Unordered list'] = 'Unordered list';
12 11 jsToolBar.strings['Ordered list'] = 'Ordered list';
13 12 jsToolBar.strings['Preformatted text'] = 'Preformatted text';
14 13 jsToolBar.strings['Wiki link'] = 'Link to a Wiki page';
15 14 jsToolBar.strings['Image'] = 'Image';
@@ -1,15 +1,14
1 1 jsToolBar.strings = {};
2 2 jsToolBar.strings['Strong'] = 'Strong';
3 3 jsToolBar.strings['Italic'] = 'Italic';
4 4 jsToolBar.strings['Underline'] = 'Underline';
5 5 jsToolBar.strings['Deleted'] = 'Deleted';
6 jsToolBar.strings['Inline quote'] = 'Inline quote';
7 jsToolBar.strings['Code'] = 'Code';
6 jsToolBar.strings['Code'] = 'Inline Code';
8 7 jsToolBar.strings['Heading 1'] = 'Heading 1';
9 8 jsToolBar.strings['Heading 2'] = 'Heading 2';
10 9 jsToolBar.strings['Heading 3'] = 'Heading 3';
11 10 jsToolBar.strings['Unordered list'] = 'Unordered list';
12 11 jsToolBar.strings['Ordered list'] = 'Ordered list';
13 12 jsToolBar.strings['Preformatted text'] = 'Preformatted text';
14 13 jsToolBar.strings['Wiki link'] = 'Link to a Wiki page';
15 14 jsToolBar.strings['Image'] = 'Image';
@@ -1,15 +1,14
1 1 jsToolBar.strings = {};
2 2 jsToolBar.strings['Strong'] = 'Gras';
3 3 jsToolBar.strings['Italic'] = 'Italique';
4 4 jsToolBar.strings['Underline'] = 'Souligné';
5 5 jsToolBar.strings['Deleted'] = 'Rayé';
6 jsToolBar.strings['Inline quote'] = 'Citation';
7 jsToolBar.strings['Code'] = 'Code';
6 jsToolBar.strings['Code'] = 'Code en ligne';
8 7 jsToolBar.strings['Heading 1'] = 'Titre niveau 1';
9 8 jsToolBar.strings['Heading 2'] = 'Titre niveau 2';
10 9 jsToolBar.strings['Heading 3'] = 'Titre niveau 3';
11 10 jsToolBar.strings['Unordered list'] = 'Liste à puces';
12 11 jsToolBar.strings['Ordered list'] = 'Liste numérotée';
13 12 jsToolBar.strings['Preformatted text'] = 'Texte préformaté';
14 13 jsToolBar.strings['Wiki link'] = 'Lien vers une page Wiki';
15 14 jsToolBar.strings['Image'] = 'Image';
@@ -1,15 +1,14
1 1 jsToolBar.strings = {};
2 2 jsToolBar.strings['Strong'] = 'Strong';
3 3 jsToolBar.strings['Italic'] = 'Italic';
4 4 jsToolBar.strings['Underline'] = 'Underline';
5 5 jsToolBar.strings['Deleted'] = 'Deleted';
6 jsToolBar.strings['Inline quote'] = 'Inline quote';
7 jsToolBar.strings['Code'] = 'Code';
6 jsToolBar.strings['Code'] = 'Inline Code';
8 7 jsToolBar.strings['Heading 1'] = 'Heading 1';
9 8 jsToolBar.strings['Heading 2'] = 'Heading 2';
10 9 jsToolBar.strings['Heading 3'] = 'Heading 3';
11 10 jsToolBar.strings['Unordered list'] = 'Unordered list';
12 11 jsToolBar.strings['Ordered list'] = 'Ordered list';
13 12 jsToolBar.strings['Preformatted text'] = 'Preformatted text';
14 13 jsToolBar.strings['Wiki link'] = 'Link to a Wiki page';
15 14 jsToolBar.strings['Image'] = 'Image';
@@ -1,15 +1,14
1 1 jsToolBar.strings = {};
2 2 jsToolBar.strings['Strong'] = 'Strong';
3 3 jsToolBar.strings['Italic'] = 'Italic';
4 4 jsToolBar.strings['Underline'] = 'Underline';
5 5 jsToolBar.strings['Deleted'] = 'Deleted';
6 jsToolBar.strings['Inline quote'] = 'Inline quote';
7 jsToolBar.strings['Code'] = 'Code';
6 jsToolBar.strings['Code'] = 'Inline Code';
8 7 jsToolBar.strings['Heading 1'] = 'Heading 1';
9 8 jsToolBar.strings['Heading 2'] = 'Heading 2';
10 9 jsToolBar.strings['Heading 3'] = 'Heading 3';
11 10 jsToolBar.strings['Unordered list'] = 'Unordered list';
12 11 jsToolBar.strings['Ordered list'] = 'Ordered list';
13 12 jsToolBar.strings['Preformatted text'] = 'Preformatted text';
14 13 jsToolBar.strings['Wiki link'] = 'Link to a Wiki page';
15 14 jsToolBar.strings['Image'] = 'Image';
@@ -1,15 +1,14
1 1 jsToolBar.strings = {};
2 2 jsToolBar.strings['Strong'] = 'Strong';
3 3 jsToolBar.strings['Italic'] = 'Italic';
4 4 jsToolBar.strings['Underline'] = 'Underline';
5 5 jsToolBar.strings['Deleted'] = 'Deleted';
6 jsToolBar.strings['Inline quote'] = 'Inline quote';
7 jsToolBar.strings['Code'] = 'Code';
6 jsToolBar.strings['Code'] = 'Inline Code';
8 7 jsToolBar.strings['Heading 1'] = 'Heading 1';
9 8 jsToolBar.strings['Heading 2'] = 'Heading 2';
10 9 jsToolBar.strings['Heading 3'] = 'Heading 3';
11 10 jsToolBar.strings['Unordered list'] = 'Unordered list';
12 11 jsToolBar.strings['Ordered list'] = 'Ordered list';
13 12 jsToolBar.strings['Preformatted text'] = 'Preformatted text';
14 13 jsToolBar.strings['Wiki link'] = 'Link to a Wiki page';
15 14 jsToolBar.strings['Image'] = 'Image';
@@ -1,15 +1,14
1 1 jsToolBar.strings = {};
2 2 jsToolBar.strings['Strong'] = 'Strong';
3 3 jsToolBar.strings['Italic'] = 'Italic';
4 4 jsToolBar.strings['Underline'] = 'Underline';
5 5 jsToolBar.strings['Deleted'] = 'Deleted';
6 jsToolBar.strings['Inline quote'] = 'Inline quote';
7 jsToolBar.strings['Code'] = 'Code';
6 jsToolBar.strings['Code'] = 'Inline Code';
8 7 jsToolBar.strings['Heading 1'] = 'Heading 1';
9 8 jsToolBar.strings['Heading 2'] = 'Heading 2';
10 9 jsToolBar.strings['Heading 3'] = 'Heading 3';
11 10 jsToolBar.strings['Unordered list'] = 'Unordered list';
12 11 jsToolBar.strings['Ordered list'] = 'Ordered list';
13 12 jsToolBar.strings['Preformatted text'] = 'Preformatted text';
14 13 jsToolBar.strings['Wiki link'] = 'Link to a Wiki page';
15 14 jsToolBar.strings['Image'] = 'Image';
@@ -1,15 +1,14
1 1 jsToolBar.strings = {};
2 2 jsToolBar.strings['Strong'] = 'Strong';
3 3 jsToolBar.strings['Italic'] = 'Italic';
4 4 jsToolBar.strings['Underline'] = 'Underline';
5 5 jsToolBar.strings['Deleted'] = 'Deleted';
6 jsToolBar.strings['Inline quote'] = 'Inline quote';
7 jsToolBar.strings['Code'] = 'Code';
6 jsToolBar.strings['Code'] = 'Inline Code';
8 7 jsToolBar.strings['Heading 1'] = 'Heading 1';
9 8 jsToolBar.strings['Heading 2'] = 'Heading 2';
10 9 jsToolBar.strings['Heading 3'] = 'Heading 3';
11 10 jsToolBar.strings['Unordered list'] = 'Unordered list';
12 11 jsToolBar.strings['Ordered list'] = 'Ordered list';
13 12 jsToolBar.strings['Preformatted text'] = 'Preformatted text';
14 13 jsToolBar.strings['Wiki link'] = 'Link to a Wiki page';
15 14 jsToolBar.strings['Image'] = 'Image';
@@ -1,15 +1,14
1 1 jsToolBar.strings = {};
2 2 jsToolBar.strings['Strong'] = 'Strong';
3 3 jsToolBar.strings['Italic'] = 'Italic';
4 4 jsToolBar.strings['Underline'] = 'Underline';
5 5 jsToolBar.strings['Deleted'] = 'Deleted';
6 jsToolBar.strings['Inline quote'] = 'Inline quote';
7 jsToolBar.strings['Code'] = 'Code';
6 jsToolBar.strings['Code'] = 'Inline Code';
8 7 jsToolBar.strings['Heading 1'] = 'Heading 1';
9 8 jsToolBar.strings['Heading 2'] = 'Heading 2';
10 9 jsToolBar.strings['Heading 3'] = 'Heading 3';
11 10 jsToolBar.strings['Unordered list'] = 'Unordered list';
12 11 jsToolBar.strings['Ordered list'] = 'Ordered list';
13 12 jsToolBar.strings['Preformatted text'] = 'Preformatted text';
14 13 jsToolBar.strings['Wiki link'] = 'Link to a Wiki page';
15 14 jsToolBar.strings['Image'] = 'Image';
@@ -1,15 +1,14
1 1 jsToolBar.strings = {};
2 2 jsToolBar.strings['Strong'] = 'Strong';
3 3 jsToolBar.strings['Italic'] = 'Italic';
4 4 jsToolBar.strings['Underline'] = 'Underline';
5 5 jsToolBar.strings['Deleted'] = 'Deleted';
6 jsToolBar.strings['Inline quote'] = 'Inline quote';
7 jsToolBar.strings['Code'] = 'Code';
6 jsToolBar.strings['Code'] = 'Inline Code';
8 7 jsToolBar.strings['Heading 1'] = 'Heading 1';
9 8 jsToolBar.strings['Heading 2'] = 'Heading 2';
10 9 jsToolBar.strings['Heading 3'] = 'Heading 3';
11 10 jsToolBar.strings['Unordered list'] = 'Unordered list';
12 11 jsToolBar.strings['Ordered list'] = 'Ordered list';
13 12 jsToolBar.strings['Preformatted text'] = 'Preformatted text';
14 13 jsToolBar.strings['Wiki link'] = 'Link to a Wiki page';
15 14 jsToolBar.strings['Image'] = 'Image';
@@ -1,15 +1,14
1 1 jsToolBar.strings = {};
2 2 jsToolBar.strings['Strong'] = 'Strong';
3 3 jsToolBar.strings['Italic'] = 'Italic';
4 4 jsToolBar.strings['Underline'] = 'Underline';
5 5 jsToolBar.strings['Deleted'] = 'Deleted';
6 jsToolBar.strings['Inline quote'] = 'Inline quote';
7 jsToolBar.strings['Code'] = 'Code';
6 jsToolBar.strings['Code'] = 'Inline Code';
8 7 jsToolBar.strings['Heading 1'] = 'Heading 1';
9 8 jsToolBar.strings['Heading 2'] = 'Heading 2';
10 9 jsToolBar.strings['Heading 3'] = 'Heading 3';
11 10 jsToolBar.strings['Unordered list'] = 'Unordered list';
12 11 jsToolBar.strings['Ordered list'] = 'Ordered list';
13 12 jsToolBar.strings['Preformatted text'] = 'Preformatted text';
14 13 jsToolBar.strings['Wiki link'] = 'Link to a Wiki page';
15 14 jsToolBar.strings['Image'] = 'Image';
@@ -1,15 +1,14
1 1 jsToolBar.strings = {};
2 2 jsToolBar.strings['Strong'] = 'Strong';
3 3 jsToolBar.strings['Italic'] = 'Italic';
4 4 jsToolBar.strings['Underline'] = 'Underline';
5 5 jsToolBar.strings['Deleted'] = 'Deleted';
6 jsToolBar.strings['Inline quote'] = 'Inline quote';
7 jsToolBar.strings['Code'] = 'Code';
6 jsToolBar.strings['Code'] = 'Inline Code';
8 7 jsToolBar.strings['Heading 1'] = 'Heading 1';
9 8 jsToolBar.strings['Heading 2'] = 'Heading 2';
10 9 jsToolBar.strings['Heading 3'] = 'Heading 3';
11 10 jsToolBar.strings['Unordered list'] = 'Unordered list';
12 11 jsToolBar.strings['Ordered list'] = 'Ordered list';
13 12 jsToolBar.strings['Preformatted text'] = 'Preformatted text';
14 13 jsToolBar.strings['Wiki link'] = 'Link to a Wiki page';
15 14 jsToolBar.strings['Image'] = 'Image';
@@ -1,15 +1,14
1 1 jsToolBar.strings = {};
2 2 jsToolBar.strings['Strong'] = 'Strong';
3 3 jsToolBar.strings['Italic'] = 'Italic';
4 4 jsToolBar.strings['Underline'] = 'Underline';
5 5 jsToolBar.strings['Deleted'] = 'Deleted';
6 jsToolBar.strings['Inline quote'] = 'Inline quote';
7 jsToolBar.strings['Code'] = 'Code';
6 jsToolBar.strings['Code'] = 'Inline Code';
8 7 jsToolBar.strings['Heading 1'] = 'Heading 1';
9 8 jsToolBar.strings['Heading 2'] = 'Heading 2';
10 9 jsToolBar.strings['Heading 3'] = 'Heading 3';
11 10 jsToolBar.strings['Unordered list'] = 'Unordered list';
12 11 jsToolBar.strings['Ordered list'] = 'Ordered list';
13 12 jsToolBar.strings['Preformatted text'] = 'Preformatted text';
14 13 jsToolBar.strings['Wiki link'] = 'Link to a Wiki page';
15 14 jsToolBar.strings['Image'] = 'Image';
@@ -1,15 +1,14
1 1 jsToolBar.strings = {};
2 2 jsToolBar.strings['Strong'] = 'Жирный';
3 3 jsToolBar.strings['Italic'] = 'Курсив';
4 4 jsToolBar.strings['Underline'] = 'Подчеркнутый';
5 5 jsToolBar.strings['Deleted'] = 'Зачеркнутый';
6 jsToolBar.strings['Inline quote'] = 'Цитата';
7 6 jsToolBar.strings['Code'] = 'Вставка кода';
8 7 jsToolBar.strings['Heading 1'] = 'Заголовок 1';
9 8 jsToolBar.strings['Heading 2'] = 'Заголовок 2';
10 9 jsToolBar.strings['Heading 3'] = 'Заголовок 3';
11 10 jsToolBar.strings['Unordered list'] = 'Маркированный список';
12 11 jsToolBar.strings['Ordered list'] = 'Нумерованный список';
13 12 jsToolBar.strings['Preformatted text'] = 'Заранее форматированный текст';
14 13 jsToolBar.strings['Wiki link'] = 'Ссылка на страницу в Wiki';
15 14 jsToolBar.strings['Image'] = 'Вставка изображения';
@@ -1,15 +1,14
1 1 jsToolBar.strings = {};
2 2 jsToolBar.strings['Strong'] = 'Strong';
3 3 jsToolBar.strings['Italic'] = 'Italic';
4 4 jsToolBar.strings['Underline'] = 'Underline';
5 5 jsToolBar.strings['Deleted'] = 'Deleted';
6 jsToolBar.strings['Inline quote'] = 'Inline quote';
7 jsToolBar.strings['Code'] = 'Code';
6 jsToolBar.strings['Code'] = 'Inline Code';
8 7 jsToolBar.strings['Heading 1'] = 'Heading 1';
9 8 jsToolBar.strings['Heading 2'] = 'Heading 2';
10 9 jsToolBar.strings['Heading 3'] = 'Heading 3';
11 10 jsToolBar.strings['Unordered list'] = 'Unordered list';
12 11 jsToolBar.strings['Ordered list'] = 'Ordered list';
13 12 jsToolBar.strings['Preformatted text'] = 'Preformatted text';
14 13 jsToolBar.strings['Wiki link'] = 'Link to a Wiki page';
15 14 jsToolBar.strings['Image'] = 'Image';
@@ -1,15 +1,14
1 1 jsToolBar.strings = {};
2 2 jsToolBar.strings['Strong'] = 'Strong';
3 3 jsToolBar.strings['Italic'] = 'Italic';
4 4 jsToolBar.strings['Underline'] = 'Underline';
5 5 jsToolBar.strings['Deleted'] = 'Deleted';
6 jsToolBar.strings['Inline quote'] = 'Inline quote';
7 jsToolBar.strings['Code'] = 'Code';
6 jsToolBar.strings['Code'] = 'Inline Code';
8 7 jsToolBar.strings['Heading 1'] = 'Heading 1';
9 8 jsToolBar.strings['Heading 2'] = 'Heading 2';
10 9 jsToolBar.strings['Heading 3'] = 'Heading 3';
11 10 jsToolBar.strings['Unordered list'] = 'Unordered list';
12 11 jsToolBar.strings['Ordered list'] = 'Ordered list';
13 12 jsToolBar.strings['Preformatted text'] = 'Preformatted text';
14 13 jsToolBar.strings['Wiki link'] = 'Link to a Wiki page';
15 14 jsToolBar.strings['Image'] = 'Image';
@@ -1,15 +1,14
1 1 jsToolBar.strings = {};
2 2 jsToolBar.strings['Strong'] = '粗體';
3 3 jsToolBar.strings['Italic'] = '斜體';
4 4 jsToolBar.strings['Underline'] = '底線';
5 5 jsToolBar.strings['Deleted'] = '刪除線';
6 jsToolBar.strings['Inline quote'] = '內嵌引文';
7 6 jsToolBar.strings['Code'] = '程式碼';
8 7 jsToolBar.strings['Heading 1'] = '標題 1';
9 8 jsToolBar.strings['Heading 2'] = '標題 2';
10 9 jsToolBar.strings['Heading 3'] = '標題 3';
11 10 jsToolBar.strings['Unordered list'] = '項目清單';
12 11 jsToolBar.strings['Ordered list'] = '編號清單';
13 12 jsToolBar.strings['Preformatted text'] = '格式化文字';
14 13 jsToolBar.strings['Wiki link'] = '連結至 Wiki 頁面';
15 14 jsToolBar.strings['Image'] = '圖片';
@@ -1,15 +1,14
1 1 jsToolBar.strings = {};
2 2 jsToolBar.strings['Strong'] = 'Strong';
3 3 jsToolBar.strings['Italic'] = 'Italic';
4 4 jsToolBar.strings['Underline'] = 'Underline';
5 5 jsToolBar.strings['Deleted'] = 'Deleted';
6 jsToolBar.strings['Inline quote'] = 'Inline quote';
7 jsToolBar.strings['Code'] = 'Code';
6 jsToolBar.strings['Code'] = 'Inline Code';
8 7 jsToolBar.strings['Heading 1'] = 'Heading 1';
9 8 jsToolBar.strings['Heading 2'] = 'Heading 2';
10 9 jsToolBar.strings['Heading 3'] = 'Heading 3';
11 10 jsToolBar.strings['Unordered list'] = 'Unordered list';
12 11 jsToolBar.strings['Ordered list'] = 'Ordered list';
13 12 jsToolBar.strings['Preformatted text'] = 'Preformatted text';
14 13 jsToolBar.strings['Wiki link'] = 'Link to a Wiki page';
15 14 jsToolBar.strings['Image'] = 'Image';
1 NO CONTENT: file was removed, binary diff hidden
1 NO CONTENT: file was removed, binary diff hidden
General Comments 0
You need to be logged in to leave comments. Login now