https://www.droisy74.com/local/cache-js/jsdyn-javascript_porte_plume_start_js-86d56415.js?1790240682
1/* #PRODUIRE{fond=javascript/porte_plume_start.js,hash=e1ab1559b8ad016bdc37a0c1778324aa,inserer_auto_name_texte=1,lang=fr} 2 md5:91c4167ea1614c828a83a105aa41e561 */ 3 4 5barre_outils_edition = { 6 "nameSpace": "edition", 7 "previewAutoRefresh": false, 8 "onEnter": { 9 "keepDefault": false, 10 "selectionType": "return", 11 "replaceWith": "\n" 12 }, 13 "onShiftEnter": { 14 "keepDefault": false, 15 "replaceWith": "\n_ " 16 }, 17 "onCtrlEnter": { 18 "keepDefault": false, 19 "replaceWith": "\n\n" 20 }, 21 "markupSet": [ 22 { 23 "name": "Transformer en {{{intertitre}}}", 24 "key": "H", 25 "className": "outil_header1", 26 "openWith": "\n{{{", 27 "closeWith": "}}}\n", 28 "selectionType": "line" 29 }, 30 { 31 "name": "Mettre en {{gras}}", 32 "key": "B", 33 "className": "outil_bold", 34 "replaceWith": function(h){ return espace_si_accolade(h, '{{', '}}');}, 35 "selectionType": "word" 36 }, 37 { 38 "name": "Mettre en {italique}", 39 "key": "I", 40 "className": "outil_italic", 41 "replaceWith": function(h){ return espace_si_accolade(h, '{', '}');}, 42 "selectionType": "word" 43 }, 44 { 45 "name": "Mettre {+{plus grand}+}", 46 "className": "portail74_plus_grand", 47 "openWith": "{+{", 48 "closeWith": "}+}", 49 "selectionType": "word", 50 "dropMenu": [ 51 { 52 "id": "portail74_plus_petit", 53 "name": "Mettre {-{plus petit}-}", 54 "className": "portail74_plus_petit", 55 "openWith": "{-{", 56 "closeWith": "}-}", 57 "display": true, 58 "selectionType": "word" 59 } 60 ] 61 }, 62 { 63 "name": "Colorer le texte", 64 "className": "cs_couleur_texte", 65 "replaceWith": "", 66 "dropMenu": [ 67 { 68 "id": "couleur_texte_noir", 69 "name": "Texte noir", 70 "className": "couleur_texte_noir", 71 "openWith": "[noir]", 72 "closeWith": "[\/noir]", 73 "selectionType": "word", 74 "display": true 75 }, 76 { 77 "id": "couleur_texte_rouge", 78 "name": "Texte rouge", 79 "className": "couleur_texte_rouge", 80 "openWith": "[rouge]", 81 "closeWith": "[\/rouge]", 82 "selectionType": "word", 83 "display": true 84 }, 85 { 86 "id": "couleur_texte_marron", 87 "name": "Texte marron", 88 "className": "couleur_texte_marron", 89 "openWith": "[marron]", 90 "closeWith": "[\/marron]", 91 "selectionType": "word", 92 "display": true 93 }, 94 { 95 "id": "couleur_texte_vert", 96 "name": "Texte vert", 97 "className": "couleur_texte_vert", 98 "openWith": "[vert]", 99 "closeWith": "[\/vert]", 100 "selectionType": "word", 101 "display": true 102 }, 103 { 104 "id": "couleur_texte_vert_olive", 105 "name": "Texte vert olive", 106 "className": "couleur_texte_vert_olive", 107 "openWith": "[vert olive]", 108 "closeWith": "[\/vert olive]", 109 "selectionType": "word", 110 "display": true 111 }, 112 { 113 "id": "couleur_texte_bleu_marine", 114 "name": "Texte bleu marine", 115 "className": "couleur_texte_bleu_marine", 116 "openWith": "[bleu marine]", 117 "closeWith": "[\/bleu marine]", 118 "selectionType": "word", 119 "display": true 120 }, 121 { 122 "id": "couleur_texte_violet", 123 "name": "Texte violet", 124 "className": "couleur_texte_violet", 125 "openWith": "[violet]", 126 "closeWith": "[\/violet]", 127 "selectionType": "word", 128 "display": true 129 }, 130 { 131 "id": "couleur_texte_gris", 132 "name": "Texte gris", 133 "className": "couleur_texte_gris", 134 "openWith": "[gris]", 135 "closeWith": "[\/gris]", 136 "selectionType": "word", 137 "display": true 138 }, 139 { 140 "id": "couleur_texte_argent", 141 "name": "Texte argent", 142 "className": "couleur_texte_argent", 143 "openWith": "[argent]", 144 "closeWith": "[\/argent]", 145 "selectionType": "word", 146 "display": true 147 }, 148 { 149 "id": "couleur_texte_vert_clair", 150 "name": "Texte vert clair", 151 "className": "couleur_texte_vert_clair", 152 "openWith": "[vert clair]", 153 "closeWith": "[\/vert clair]", 154 "selectionType": "word", 155 "display": true 156 }, 157 { 158 "id": "couleur_texte_bleu", 159 "name": "Texte bleu", 160 "className": "couleur_texte_bleu", 161 "openWith": "[bleu]", 162 "closeWith": "[\/bleu]", 163 "selectionType": "word", 164 "display": true 165 }, 166 { 167 "id": "couleur_texte_fuchia", 168 "name": "Texte fuchia", 169 "className": "couleur_texte_fuchia", 170 "openWith": "[fuchia]", 171 "closeWith": "[\/fuchia]", 172 "selectionType": "word", 173 "display": true 174 }, 175 { 176 "id": "couleur_texte_bleu_clair", 177 "name": "Texte bleu clair", 178 "className": "couleur_texte_bleu_clair", 179 "openWith": "[bleu clair]", 180 "closeWith": "[\/bleu clair]", 181 "selectionType": "word", 182 "display": true 183 }, 184 { 185 "id": "couleur_texte_blanc", 186 "name": "Texte blanc", 187 "className": "couleur_texte_blanc", 188 "openWith": "[blanc]", 189 "closeWith": "[\/blanc]", 190 "selectionType": "word", 191 "display": true 192 }, 193 { 194 "id": "couleur_texte_bleu_azur", 195 "name": "Texte bleu azur", 196 "className": "couleur_texte_bleu_azur", 197 "openWith": "[bleu azur]", 198 "closeWith": "[\/bleu azur]", 199 "selectionType": "word", 200 "display": true 201 }, 202 { 203 "id": "couleur_texte_beige", 204 "name": "Texte beige", 205 "className": "couleur_texte_beige", 206 "openWith": "[beige]", 207 "closeWith": "[\/beige]", 208 "selectionType": "word", 209 "display": true 210 }, 211 { 212 "id": "couleur_texte_brun", 213 "name": "Texte brun", 214 "className": "couleur_texte_brun", 215 "openWith": "[brun]", 216 "closeWith": "[\/brun]", 217 "selectionType": "word", 218 "display": true 219 }, 220 { 221 "id": "couleur_texte_bleu_violet", 222 "name": "Texte bleu violet", 223 "className": "couleur_texte_bleu_violet", 224 "openWith": "[bleu violet]", 225 "closeWith": "[\/bleu violet]", 226 "selectionType": "word", 227 "display": true 228 }, 229 { 230 "id": "couleur_texte_brun_clair", 231 "name": "Texte brun clair", 232 "className": "couleur_texte_brun_clair", 233 "openWith": "[brun clair]", 234 "closeWith": "[\/brun clair]", 235 "selectionType": "word", 236 "display": true 237 }, 238 { 239 "id": "couleur_texte_rose_clair", 240 "name": "Texte rose clair", 241 "className": "couleur_texte_rose_clair", 242 "openWith": "[rose clair]", 243 "closeWith": "[\/rose clair]", 244 "selectionType": "word", 245 "display": true 246 }, 247 { 248 "id": "couleur_texte_vert_fonce", 249 "name": "Texte vert fonce", 250 "className": "couleur_texte_vert_fonce", 251 "openWith": "[vert fonce]", 252 "closeWith": "[\/vert fonce]", 253 "selectionType": "word", 254 "display": true 255 }, 256 { 257 "id": "couleur_texte_orange_fonce", 258 "name": "Texte orange fonce", 259 "className": "couleur_texte_orange_fonce", 260 "openWith": "[orange fonce]", 261 "closeWith": "[\/orange fonce]", 262 "selectionType": "word", 263 "display": true 264 }, 265 { 266 "id": "couleur_texte_mauve_fonce", 267 "name": "Texte mauve fonce", 268 "className": "couleur_texte_mauve_fonce", 269 "openWith": "[mauve fonce]", 270 "closeWith": "[\/mauve fonce]", 271 "selectionType": "word", 272 "display": true 273 }, 274 { 275 "id": "couleur_texte_bleu_ciel", 276 "name": "Texte bleu ciel", 277 "className": "couleur_texte_bleu_ciel", 278 "openWith": "[bleu ciel]", 279 "closeWith": "[\/bleu ciel]", 280 "selectionType": "word", 281 "display": true 282 }, 283 { 284 "id": "couleur_texte_or", 285 "name": "Texte or", 286 "className": "couleur_texte_or", 287 "openWith": "[or]", 288 "closeWith": "[\/or]", 289 "selectionType": "word", 290 "display": true 291 }, 292 { 293 "id": "couleur_texte_ivoire", 294 "name": "Texte ivoire", 295 "className": "couleur_texte_ivoire", 296 "openWith": "[ivoire]", 297 "closeWith": "[\/ivoire]", 298 "selectionType": "word", 299 "display": true 300 }, 301 { 302 "id": "couleur_texte_orange", 303 "name": "Texte orange", 304 "className": "couleur_texte_orange", 305 "openWith": "[orange]", 306 "closeWith": "[\/orange]", 307 "selectionType": "word", 308 "display": true 309 }, 310 { 311 "id": "couleur_texte_lavande", 312 "name": "Texte lavande", 313 "className": "couleur_texte_lavande", 314 "openWith": "[lavande]", 315 "closeWith": "[\/lavande]", 316 "selectionType": "word", 317 "display": true 318 }, 319 { 320 "id": "couleur_texte_rose", 321 "name": "Texte rose", 322 "className": "couleur_texte_rose", 323 "openWith": "[rose]", 324 "closeWith": "[\/rose]", 325 "selectionType": "word", 326 "display": true 327 }, 328 { 329 "id": "couleur_texte_prune", 330 "name": "Texte prune", 331 "className": "couleur_texte_prune", 332 "openWith": "[prune]", 333 "closeWith": "[\/prune]", 334 "selectionType": "word", 335 "display": true 336 }, 337 { 338 "id": "couleur_texte_saumon", 339 "name": "Texte saumon", 340 "className": "couleur_texte_saumon", 341 "openWith": "[saumon]", 342 "closeWith": "[\/saumon]", 343 "selectionType": "word", 344 "display": true 345 }, 346 { 347 "id": "couleur_texte_neige", 348 "name": "Texte neige", 349 "className": "couleur_texte_neige", 350 "openWith": "[neige]", 351 "closeWith": "[\/neige]", 352 "selectionType": "word", 353 "display": true 354 }, 355 { 356 "id": "couleur_texte_turquoise", 357 "name": "Texte turquoise", 358 "className": "couleur_texte_turquoise", 359 "openWith": "[turquoise]", 360 "closeWith": "[\/turquoise]", 361 "selectionType": "word", 362 "display": true 363 }, 364 { 365 "id": "couleur_texte_jaune_paille", 366 "name": "Texte jaune paille", 367 "className": "couleur_texte_jaune_paille", 368 "openWith": "[jaune paille]", 369 "closeWith": "[\/jaune paille]", 370 "selectionType": "word", 371 "display": true 372 }, 373 { 374 "id": "couleur_texte_jaune", 375 "name": "Texte jaune", 376 "className": "couleur_texte_jaune", 377 "openWith": "[jaune]", 378 "closeWith": "[\/jaune]", 379 "selectionType": "word", 380 "display": true 381 } 382 ] 383 }, 384 { 385 "name": "Colorer le fond", 386 "className": "cs_couleur_fond", 387 "replaceWith": "", 388 "dropMenu": [ 389 { 390 "id": "couleur_fond_noir", 391 "name": "Fond noir", 392 "className": "couleur_fond_noir", 393 "openWith": "[fond noir]", 394 "closeWith": "[\/fond noir]", 395 "selectionType": "word", 396 "display": true 397 }, 398 { 399 "id": "couleur_fond_rouge", 400 "name": "Fond rouge", 401 "className": "couleur_fond_rouge", 402 "openWith": "[fond rouge]", 403 "closeWith": "[\/fond rouge]", 404 "selectionType": "word", 405 "display": true 406 }, 407 { 408 "id": "couleur_fond_marron", 409 "name": "Fond marron", 410 "className": "couleur_fond_marron", 411 "openWith": "[fond marron]", 412 "closeWith": "[\/fond marron]", 413 "selectionType": "word", 414 "display": true 415 }, 416 { 417 "id": "couleur_fond_vert", 418 "name": "Fond vert", 419 "className": "couleur_fond_vert", 420 "openWith": "[fond vert]", 421 "closeWith": "[\/fond vert]",
421 422 "selectionType": "word", 423 "display": true 424 }, 425 { 426 "id": "couleur_fond_vert_olive", 427 "name": "Fond vert olive", 428 "className": "couleur_fond_vert_olive", 429 "openWith": "[fond vert olive]", 430 "closeWith": "[\/fond vert olive]", 431 "selectionType": "word", 432 "display": true 433 }, 434 { 435 "id": "couleur_fond_bleu_marine", 436 "name": "Fond bleu marine", 437 "className": "couleur_fond_bleu_marine", 438 "openWith": "[fond bleu marine]", 439 "closeWith": "[\/fond bleu marine]", 440 "selectionType": "word", 441 "display": true 442 }, 443 { 444 "id": "couleur_fond_violet", 445 "name": "Fond violet", 446 "className": "couleur_fond_violet", 447 "openWith": "[fond violet]", 448 "closeWith": "[\/fond violet]", 449 "selectionType": "word", 450 "display": true 451 }, 452 { 453 "id": "couleur_fond_gris", 454 "name": "Fond gris", 455 "className": "couleur_fond_gris", 456 "openWith": "[fond gris]", 457 "closeWith": "[\/fond gris]", 458 "selectionType": "word", 459 "display": true 460 }, 461 { 462 "id": "couleur_fond_argent", 463 "name": "Fond argent", 464 "className": "couleur_fond_argent", 465 "openWith": "[fond argent]", 466 "closeWith": "[\/fond argent]", 467 "selectionType": "word", 468 "display": true 469 }, 470 { 471 "id": "couleur_fond_vert_clair", 472 "name": "Fond vert clair", 473 "className": "couleur_fond_vert_clair", 474 "openWith": "[fond vert clair]", 475 "closeWith": "[\/fond vert clair]", 476 "selectionType": "word", 477 "display": true 478 }, 479 { 480 "id": "couleur_fond_bleu", 481 "name": "Fond bleu", 482 "className": "couleur_fond_bleu", 483 "openWith": "[fond bleu]", 484 "closeWith": "[\/fond bleu]", 485 "selectionType": "word", 486 "display": true 487 }, 488 { 489 "id": "couleur_fond_fuchia", 490 "name": "Fond fuchia", 491 "className": "couleur_fond_fuchia", 492 "openWith": "[fond fuchia]", 493 "closeWith": "[\/fond fuchia]", 494 "selectionType": "word", 495 "display": true 496 }, 497 { 498 "id": "couleur_fond_bleu_clair", 499 "name": "Fond bleu clair", 500 "className": "couleur_fond_bleu_clair", 501 "openWith": "[fond bleu clair]", 502 "closeWith": "[\/fond bleu clair]", 503 "selectionType": "word", 504 "display": true 505 }, 506 { 507 "id": "couleur_fond_blanc", 508 "name": "Fond blanc", 509 "className": "couleur_fond_blanc", 510 "openWith": "[fond blanc]", 511 "closeWith": "[\/fond blanc]", 512 "selectionType": "word", 513 "display": true 514 }, 515 { 516 "id": "couleur_fond_bleu_azur", 517 "name": "Fond bleu azur", 518 "className": "couleur_fond_bleu_azur", 519 "openWith": "[fond bleu azur]", 520 "closeWith": "[\/fond bleu azur]", 521 "selectionType": "word", 522 "display": true 523 }, 524 { 525 "id": "couleur_fond_beige", 526 "name": "Fond beige", 527 "className": "couleur_fond_beige", 528 "openWith": "[fond beige]", 529 "closeWith": "[\/fond beige]", 530 "selectionType": "word", 531 "display": true 532 }, 533 { 534 "id": "couleur_fond_brun", 535 "name": "Fond brun", 536 "className": "couleur_fond_brun", 537 "openWith": "[fond brun]", 538 "closeWith": "[\/fond brun]", 539 "selectionType": "word", 540 "display": true 541 }, 542 { 543 "id": "couleur_fond_bleu_violet", 544 "name": "Fond bleu violet", 545 "className": "couleur_fond_bleu_violet", 546 "openWith": "[fond bleu violet]", 547 "closeWith": "[\/fond bleu violet]", 548 "selectionType": "word", 549 "display": true 550 }, 551 { 552 "id": "couleur_fond_brun_clair", 553 "name": "Fond brun clair", 554 "className": "couleur_fond_brun_clair", 555 "openWith": "[fond brun clair]", 556 "closeWith": "[\/fond brun clair]", 557 "selectionType": "word", 558 "display": true 559 }, 560 { 561 "id": "couleur_fond_rose_clair", 562 "name": "Fond rose clair", 563 "className": "couleur_fond_rose_clair", 564 "openWith": "[fond rose clair]", 565 "closeWith": "[\/fond rose clair]", 566 "selectionType": "word", 567 "display": true 568 }, 569 { 570 "id": "couleur_fond_vert_fonce", 571 "name": "Fond vert fonce", 572 "className": "couleur_fond_vert_fonce", 573 "openWith": "[fond vert fonce]", 574 "closeWith": "[\/fond vert fonce]", 575 "selectionType": "word", 576 "display": true 577 }, 578 { 579 "id": "couleur_fond_orange_fonce", 580 "name": "Fond orange fonce", 581 "className": "couleur_fond_orange_fonce", 582 "openWith": "[fond orange fonce]", 583 "closeWith": "[\/fond orange fonce]", 584 "selectionType": "word", 585 "display": true 586 }, 587 { 588 "id": "couleur_fond_mauve_fonce", 589 "name": "Fond mauve fonce", 590 "className": "couleur_fond_mauve_fonce", 591 "openWith": "[fond mauve fonce]", 592 "closeWith": "[\/fond mauve fonce]", 593 "selectionType": "word", 594 "display": true 595 }, 596 { 597 "id": "couleur_fond_bleu_ciel", 598 "name": "Fond bleu ciel", 599 "className": "couleur_fond_bleu_ciel", 600 "openWith": "[fond bleu ciel]", 601 "closeWith": "[\/fond bleu ciel]", 602 "selectionType": "word", 603 "display": true 604 }, 605 { 606 "id": "couleur_fond_or", 607 "name": "Fond or", 608 "className": "couleur_fond_or", 609 "openWith": "[fond or]", 610 "closeWith": "[\/fond or]", 611 "selectionType": "word", 612 "display": true 613 }, 614 { 615 "id": "couleur_fond_ivoire", 616 "name": "Fond ivoire", 617 "className": "couleur_fond_ivoire", 618 "openWith": "[fond ivoire]", 619 "closeWith": "[\/fond ivoire]", 620 "selectionType": "word", 621 "display": true 622 }, 623 { 624 "id": "couleur_fond_orange", 625 "name": "Fond orange", 626 "className": "couleur_fond_orange", 627 "openWith": "[fond orange]", 628 "closeWith": "[\/fond orange]", 629 "selectionType": "word", 630 "display": true 631 }, 632 { 633 "id": "couleur_fond_lavande", 634 "name": "Fond lavande", 635 "className": "couleur_fond_lavande", 636 "openWith": "[fond lavande]", 637 "closeWith": "[\/fond lavande]", 638 "selectionType": "word", 639 "display": true 640 }, 641 { 642 "id": "couleur_fond_rose", 643 "name": "Fond rose", 644 "className": "couleur_fond_rose", 645 "openWith": "[fond rose]", 646 "closeWith": "[\/fond rose]", 647 "selectionType": "word", 648 "display": true 649 }, 650 { 651 "id": "couleur_fond_prune", 652 "name": "Fond prune", 653 "className": "couleur_fond_prune", 654 "openWith": "[fond prune]", 655 "closeWith": "[\/fond prune]", 656 "selectionType": "word", 657 "display": true 658 }, 659 { 660 "id": "couleur_fond_saumon", 661 "name": "Fond saumon", 662 "className": "couleur_fond_saumon", 663 "openWith": "[fond saumon]", 664 "closeWith": "[\/fond saumon]", 665 "selectionType": "word", 666 "display": true 667 }, 668 { 669 "id": "couleur_fond_neige", 670 "name": "Fond neige", 671 "className": "couleur_fond_neige", 672 "openWith": "[fond neige]", 673 "closeWith": "[\/fond neige]", 674 "selectionType": "word", 675 "display": true 676 }, 677 { 678 "id": "couleur_fond_turquoise", 679 "name": "Fond turquoise", 680 "className": "couleur_fond_turquoise", 681 "openWith": "[fond turquoise]", 682 "closeWith": "[\/fond turquoise]", 683 "selectionType": "word", 684 "display": true 685 }, 686 { 687 "id": "couleur_fond_jaune_paille", 688 "name": "Fond jaune paille", 689 "className": "couleur_fond_jaune_paille", 690 "openWith": "[fond jaune paille]", 691 "closeWith": "[\/fond jaune paille]", 692 "selectionType": "word", 693 "display": true 694 }, 695 { 696 "id": "couleur_fond_jaune", 697 "name": "Fond jaune", 698 "className": "couleur_fond_jaune", 699 "openWith": "[fond jaune]", 700 "closeWith": "[\/fond jaune]", 701 "selectionType": "word", 702 "display": true 703 } 704 ] 705 }, 706 { 707 "name": "Appliquer au texte une \u00ab\u00a0d\u00e9c
707oration\u00a0\u00bb personnalis\u00e9e", 708 "className": "cs_decoration_drop", 709 "replaceWith": "", 710 "dropMenu": [ 711 { 712 "id": "decoration_sc", 713 "name": "D\u00e9coration \u00ab\u00a0span.sc\u00a0\u00bb", 714 "className": "decoration_sc", 715 "selectionType": "word", 716 "replaceWith": function(h){ return outil_decoration(h.selection, 'sc', 'span', '<sc/>'); }, 717 "display": true 718 }, 719 { 720 "id": "decoration_souligne", 721 "name": "D\u00e9coration \u00ab\u00a0span.souligne\u00a0\u00bb", 722 "className": "decoration_souligne", 723 "selectionType": "word", 724 "replaceWith": function(h){ return outil_decoration(h.selection, 'souligne', 'span', '<souligne/>'); }, 725 "display": true 726 }, 727 { 728 "id": "decoration_barre", 729 "name": "D\u00e9coration \u00ab\u00a0span.barre\u00a0\u00bb", 730 "className": "decoration_barre", 731 "selectionType": "word", 732 "replaceWith": function(h){ return outil_decoration(h.selection, 'barre', 'span', '<barre/>'); }, 733 "display": true 734 }, 735 { 736 "id": "decoration_dessus", 737 "name": "D\u00e9coration \u00ab\u00a0span.dessus\u00a0\u00bb", 738 "className": "decoration_dessus", 739 "selectionType": "word", 740 "replaceWith": function(h){ return outil_decoration(h.selection, 'dessus', 'span', '<dessus/>'); }, 741 "display": true 742 }, 743 { 744 "id": "decoration_clignote", 745 "name": "D\u00e9coration \u00ab\u00a0span.clignote\u00a0\u00bb", 746 "className": "decoration_clignote", 747 "selectionType": "word", 748 "replaceWith": function(h){ return outil_decoration(h.selection, 'clignote', 'span', '<clignote/>'); }, 749 "display": true 750 }, 751 { 752 "id": "decoration_surfluo", 753 "name": "D\u00e9coration \u00ab\u00a0span.surfluo\u00a0\u00bb", 754 "className": "decoration_surfluo", 755 "selectionType": "word", 756 "replaceWith": function(h){ return outil_decoration(h.selection, 'surfluo', 'span', '<surfluo/>'); }, 757 "display": true 758 }, 759 { 760 "id": "decoration_surgris", 761 "name": "D\u00e9coration \u00ab\u00a0span.surgris\u00a0\u00bb", 762 "className": "decoration_surgris", 763 "selectionType": "word", 764 "replaceWith": function(h){ return outil_decoration(h.selection, 'surgris', 'span', '<surgris/>'); }, 765 "display": true 766 } 767 ] 768 }, 769 { 770 "name": "Mettre en liste", 771 "className": "outil_liste_ul separateur_avant", 772 "replaceWith": function(h){ return outil_liste(h, '*');}, 773 "selectionType": "line", 774 "forceMultiline": true, 775 "dropMenu": [ 776 { 777 "id": "liste_ol", 778 "name": "Mettre en liste num\u00e9rot\u00e9e", 779 "className": "outil_liste_ol", 780 "replaceWith": function(h){ return outil_liste(h, '#');}, 781 "display": true, 782 "selectionType": "line", 783 "forceMultiline": true 784 }, 785 { 786 "id": "desindenter", 787 "name": "D\u00e9sindenter une liste", 788 "className": "outil_desindenter", 789 "replaceWith": function(h){return outil_desindenter(h);}, 790 "display": true, 791 "selectionType": "line", 792 "forceMultiline": true 793 }, 794 { 795 "id": "indenter", 796 "name": "Indenter une liste", 797 "className": "outil_indenter", 798 "replaceWith": function(h){return outil_indenter(h);}, 799 "display": true, 800 "selectionType": "line", 801 "forceMultiline": true 802 } 803 ] 804 }, 805 { 806 "name": "Transformer en [lien hypertexte->http:\/\/...]", 807 "key": "L", 808 "className": "outil_link separateur separateur_apres sepLink", 809 "openWith": "[", 810 "closeWith": "->[![Veuillez indiquer l\u2019adresse de votre lien (vous pouvez indiquer une adresse Internet sous la forme http:\/\/www.monsite.com, une adresse courriel, ou simplement indiquer le num\u00e9ro d\u2019un article de ce site.]!]]" 811 }, 812 { 813 "name": "Transformer en [[Note de bas de page]]", 814 "className": "outil_notes separateur_avant", 815 "openWith": "[[", 816 "closeWith": "]]", 817 "selectionType": "word" 818 }, 819 { 820 "name": "<quote>Citer un message<\/quote>", 821 "key": "Q", 822 "className": "outil_quote separateur separateur_apres sepGuillemets", 823 "openWith": "\n<quote>", 824 "closeWith": "<\/quote>\n", 825 "selectionType": "word", 826 "dropMenu": [ 827 { 828 "id": "barre_poesie", 829 "name": "Mettre en forme comme une <poesie>po\u00e9sie<\/poesie>", 830 "className": "outil_barre_poesie", 831 "openWith": "\n<poesie>", 832 "closeWith": "<\/poesie>\n", 833 "display": true, 834 "selectionType": "line" 835 }, 836 { 837 "id": "portail74_marquee_horizontal", 838 "name": "Faire [<[d\u00e9filer horizontalement]<]", 839 "className": "portail74_marquee_horizontal", 840 "openWith": "\n[<[", 841 "closeWith": "]<]\n", 842 "display": true, 843 "selectionType": "line" 844 }, 845 { 846 "id": "portail74_marquee_vertical", 847 "name": "Faire [^[d\u00e9filer verticalement]^]", 848 "className": "portail74_marquee_vertical", 849 "openWith": "\n[^[", 850 "closeWith": "]^]\n", 851 "display": true, 852 "selectionType": "line" 853 } 854 ] 855 }, 856 {
857 "name": "Entourer de \u00ab\u00a0guillemets\u00a0\u00bb", 858 "className": "outil_guillemets", 859 "openWith": "«", 860 "closeWith": "»", 861 "lang": [ 862 "fr", 863 "eo", 864 "cpf", 865 "ar", 866 "es" 867 ], 868 "selectionType": "word", 869 "dropMenu": [ 870 { 871 "id": "guillemets_simples", 872 "name": "Entourer de \u201cguillemets de second niveau\u201d", 873 "className": "outil_guillemets_simples", 874 "openWith": "â", 875 "closeWith": "â", 876 "display": true, 877 "lang": [ 878 "fr", 879 "eo", 880 "cpf", 881 "ar", 882 "es" 883 ], 884 "selectionType": "word" 885 } 886 ] 887 }, 888 { 889 "name": "Entourer de \u00ab\u00a0guillemets\u00a0\u00bb", 890 "className": "outil_guillemets_de", 891 "openWith": "â", 892 "closeWith": "â", 893 "lang": [ 894 "bg", 895 "de", 896 "pl", 897 "hr", 898 "src" 899 ], 900 "selectionType": "word", 901 "dropMenu": [ 902 { 903 "id": "guillemets_de_simples", 904 "name": "Entourer de \u201cguillemets de second niveau\u201d", 905 "className": "outil_guillemets_de_simples", 906 "openWith": "‚", 907 "closeWith": "â", 908 "display": true, 909 "lang": [ 910 "bg", 911 "de", 912 "pl", 913 "hr", 914 "src" 915 ], 916 "selectionType": "word" 917 } 918 ] 919 }, 920 { 921 "name": "Entourer de \u00ab\u00a0guillemets\u00a0\u00bb", 922 "className": "outil_guillemets_simples separateur_avant", 923 "openWith": "â", 924 "closeWith": "â", 925 "lang_not": [ 926 "fr", 927 "eo", 928 "cpf", 929 "ar", 930 "es", 931 "bg", 932 "de", 933 "pl", 934 "hr", 935 "src" 936 ], 937 "selectionType": "word", 938 "dropMenu": [ 939 { 940 "id": "guillemets_autres_simples", 941 "name": "Entourer de \u201cguillemets de second niveau\u201d", 942 "className": "outil_guillemets_uniques", 943 "openWith": "â", 944 "closeWith": "â", 945 "display": true, 946 "lang_not": [ 947 "fr", 948 "eo", 949 "cpf", 950 "ar", 951 "es", 952 "bg", 953 "de", 954 "pl", 955 "hr", 956 "src" 957 ], 958 "selectionType": "word" 959 } 960 ] 961 }, 962 { 963 "name": "Ins\u00e9rer des caract\u00e8res sp\u00e9cifiques", 964 "className": "outil_caracteres separateur separateur_apres sepCaracteres separateur_avant", 965 "dropMenu": [ 966 { 967 "id": "A_grave", 968 "name": "Ins\u00e9rer un \u00c0", 969 "className": "outil_a_maj_grave", 970 "replaceWith": "Ã", 971 "display": true, 972 "lang": [ 973 "fr", 974 "eo", 975 "cpf" 976 ] 977 }, 978 { 979 "id": "E_aigu", 980 "name": "Ins\u00e9rer un \u00c9", 981 "className": "outil_e_maj_aigu", 982 "replaceWith": "Ã", 983 "display": true, 984 "lang": [ 985 "fr", 986 "eo", 987 "cpf" 988 ] 989 }, 990 { 991 "id": "E_grave", 992 "name": "Ins\u00e9rer un \u00c8", 993 "className": "outil_e_maj_grave", 994 "replaceWith": "Ã", 995 "display": true, 996 "lang": [ 997 "fr", 998 "eo", 999 "cpf" 1000 ] 1001 }, 1002 { 1003 "id": "aelig", 1004 "name": "Ins\u00e9rer un \u00e6", 1005 "className": "outil_aelig", 1006 "replaceWith": "æ", 1007 "display": true, 1008 "lang": [ 1009 "fr", 1010 "eo", 1011 "cpf" 1012 ] 1013 }, 1014 { 1015 "id": "AElig", 1016 "name": "Ins\u00e9rer un \u00c6", 1017 "className": "outil_aelig_maj", 1018 "replaceWith": "Ã", 1019 "display": true, 1020 "lang": [ 1021 "fr", 1022 "eo", 1023 "cpf" 1024 ] 1025 }, 1026 { 1027 "id": "oe", 1028 "name": "Ins\u00e9rer un \u0153", 1029 "className": "outil_oe", 1030 "replaceWith": "Å", 1031 "display": true, 1032 "lang": [ 1033 "fr" 1034 ] 1035 }, 1036 { 1037 "id": "OE", 1038 "name": "Ins\u00e9rer un \u0152", 1039 "className": "outil_oe_maj", 1040 "replaceWith": "Å", 1041 "display": true, 1042 "lang": [ 1043 "fr" 1044 ] 1045 }, 1046 { 1047 "id": "Ccedil", 1048 "name": "Ins\u00e9rer un \u00c7", 1049 "className": "outil_ccedil_maj", 1050 "replaceWith": "Ã", 1051 "display": true, 1052 "lang": [ 1053 "fr", 1054 "eo", 1055 "cpf" 1056 ] 1057 }, 1058 { 1059 "id": "portail74_pipe", 1060 "name": "Barre verticale ¦", 1061 "className": "portail74_pipe", 1062 "replaceWith": "|", 1063 "display": true, 1064 "lang": [ 1065 "fr", 1066 "en" 1067 ] 1068 }, 1069 { 1070 "id": "uppercase", 1071 "name": "Passer en majuscules", 1072 "className": "outil_uppercase", 1073 "replaceWith": function(markitup) { return markitup.selection.toUpperCase() }, 1074 "display": true, 1075 "lang": [ 1076 "fr", 1077 "en" 1078 ] 1079 }, 1080 { 1081 "id": "lowercase", 1082 "name": "Passer en minuscules", 1083 "className": "outil_lowercase", 1084 "replaceWith": function(markitup) { return markitup.selection.toLowerCase() }, 1085 "display": true, 1086 "lang": [ 1087 "fr", 1088 "en" 1089 ] 1090 } 1091 ] 1092 }, 1093 { 1094 "name": "Ins\u00e9rer un code informatique (`)", 1095 "className": "outil_code separateur separateur_apres sepCode", 1096 "openWith": "`", 1097 "closeWith": "`", 1098 "dropMenu": [ 1099 { 1100 "id": "cadre", 1101 "name": "Ins\u00e9rer un code pr\u00e9format\u00e9 (```)", 1102 "className": "outil_cadre", 1103 "openWith": "```\n", 1104 "closeWith": "\n```", 1105 "display": true 1106 } 1107 ] 1108 } 1109 ] 1110} 1111 1112 1113 // remplace ou cree -* ou -** ou -# ou -## 1114 function outil_liste(h, c) { 1115 if ((s = h.selection) && (r = s.match(/^-([*#]+) (.*)$/))) { 1116 r[1] = r[1].replace(/[#*]/g, c); 1117 s = '-'+r[1]+' '+r[2]; 1118 } else { 1119 s = '-' + c + ' '+s; 1120 } 1121 return s; 1122 } 1123 1124 // indente des -* ou -# 1125 function outil_indenter(h) { 1126 if (s = h.selection) { 1127 if (s.substr(0,2)=='-*') { 1128 s = '-**' + s.substr(2); 1129 } else if (s.substr(0,2)=='-#') { 1130 s = '-##' + s.substr(2); 1131 } else { 1132 s = '-* ' + s; 1133 } 1134 } 1135 return s; 1136 } 1137 1138 // desindente des -* ou -** ou -# ou -## 1139 function outil_desindenter(h){ 1140 if (s = h.selection) { 1141 if (s.substr(0,3)=='-**') { 1142 s = '-*' + s.substr(3); 1143 } else if (s.substr(0,3)=='-* ') { 1144 s = s.substr(3); 1145 } else if (s.substr(0,3)=='-##') { 1146 s = '-#' + s.substr(3); 1147 } else if (s.substr(0,3)=='-# ') { 1148 s = s.substr(3); 1149 } 1150 } 1151 return s; 1152 } 1153 1154 // ajouter un espace avant, apres un {qqc} pour ne pas que 1155 // gras {{}} suivi de italique {} donnent {{{}}}, mais { {{}} } 1156 function espace_si_accolade(h, openWith, closeWith){ 1157 if (s = h.selection) { 1158 // accolade dans la selection 1159 if (s.charAt(0)=='{') { 1160 return openWith + ' ' + s + ' ' + closeWith; 1161 } 1162 // accolade avant la selection 1163 else if (c = h.textarea.selectionStart) { 1164 if (h.textarea.value.charAt(c-1) == '{') { 1165 return ' ' + openWith + s + closeWith + ' '; 1166 } 1167 } 1168 } 1169 return openWith + s + closeWith; 1170 } 1171 1172function outil_decoration(sel, racc, balise, defaut) { 1173 if(sel) { 1174 r='<'+racc+'>'+sel+'</'+racc+'>'; 1175 return balise=='span'?r.replace(/(\n\n|\r\n\r\n|\r\r)/g,'</'+racc+'>$1<'+racc+'>'):r; 1176 } 1177 return defaut; 1178 } 1179 1180 1181barre_outils_forum = { 1182 "nameSpace": "forum", 1183 "previewAutoRefresh": false, 1184 "onEnter": { 1185 "keepDefault": false, 1186 "selectionType": "return", 1187 "replaceWith": "\n" 1188 }, 1189 "onShiftEnter": { 1190 "keepDefault": false, 1191 "replaceWith": "\n_ " 1192 }, 1193 "onCtrlEnter": { 1194 "keepDefault": false, 1195 "replaceWith": "\n\n" 1196 }, 1197 "markupSet": [ 1198 { 1199 "name": "Mettre en {{gras}}", 1200 "key": "B", 1201 "className": "outil_bold", 1202 "replaceWith": function(h){ return espace_si_accolade(h, '{{', '}}');}, 1203 "selectionType": "word" 1204 }, 1205 { 1206 "name": "Mettre en {italique}", 1207 "key": "I", 1208 "className": "outil_italic", 1209 "replaceWith": function(h){ return espace_si_accolade(h, '{', '}');}, 1210 "selectionType": "word" 1211 }, 1212 { 1213 "name": "Colorer le texte", 1214 "className": "cs_couleur_texte", 1215 "replaceWith": "", 1216 "dropMenu": [ 1217 { 1218 "id": "couleur_texte_noir", 1219 "name": "Texte noir", 1220 "className": "couleur_texte_noir", 1221 "openWith": "[noir]", 1222 "closeWith": "[\/noir]", 1223 "selectionType": "word", 1224 "display": true 1225 }, 1226 { 1227 "id": "couleur_texte_rouge", 1228 "name": "Texte rouge", 1229 "className": "couleur_texte_rouge", 1230 "openWith": "[rouge]", 1231 "closeWith": "[\/rouge]", 1232 "selectionType": "word", 1233 "display": true 1234 }, 1235 { 1236 "id": "couleur_texte_marron", 1237 "name": "Texte marron", 1238 "className": "couleur_texte_marron", 1239 "openWith": "[marron]", 1240 "closeWith": "[\/marron]", 1241 "selectionType": "word", 1242 "display": true 1243 }, 1244 { 1245 "id": "couleur_texte_vert", 1246 "name": "Texte vert", 1247 "className": "couleur_texte_vert", 1248 "openWith": "[vert]", 1249 "closeWith": "[\/vert]", 1250 "selectionType": "word", 1251 "display": true 1252 }, 1253 { 1254 "id": "couleur_texte_vert_olive", 1255 "name": "Texte vert olive", 1256 "className": "couleur_texte_vert_olive", 1257 "openWith": "[vert olive]", 1258 "closeWith": "[\/vert olive]", 1259 "selectionType": "word", 1260 "display": true 1261 }, 1262 { 1263 "id": "couleur_texte_bleu_marine", 1264 "name": "Texte bleu marine", 1265 "className": "couleur_texte_bleu_marine", 1266 "openWith": "[bleu marine]", 1267 "closeWith": "[\/bleu marine]", 1268 "selectionType": "word", 1269 "display": true 1270 }, 1271 { 1272 "id": "couleur_texte_violet", 1273 "name": "Texte violet", 1274 "className": "couleur_texte_violet", 1275 "openWith": "[violet]", 1276 "closeWith": "[\/violet]", 1277 "selectionType": "word", 1278 "display": true 1279 }, 1280 { 1281 "id": "couleur_texte_gris", 1282 "name": "Texte gris", 1283 "className": "couleur_texte_gris", 1284 "openWith": "[gris]", 1285 "closeWith": "[\/gris]", 1286 "selectionType": "word", 1287 "display": true 1288 }, 1289 { 1290 "id": "couleur_texte_argent", 1291 "name": "Texte argent", 1292 "className": "couleur_texte_argent", 1293 "openWith": "[argent]", 1294 "closeWith": "[\/argent]", 1295 "selectionType": "word", 1296 "display": true 1297 }, 1298 { 1299 "id": "couleur_texte_vert_clair", 1300 "name": "Texte vert clair", 1301 "className": "couleur_texte_vert_clair", 1302 "openWith": "[vert clair]", 1303 "closeWith": "[\/vert clair]", 1304 "selectionType": "word", 1305 "display": true 1306 }, 1307 { 1308 "id": "couleur_texte_bleu", 1309 "name": "Texte bleu", 1310 "className": "couleur_texte_bleu", 1311 "openWith": "[bleu]", 1312 "closeWith": "[\/bleu]", 1313 "selectionType": "word", 1314 "display": true 1315 }, 1316 { 1317 "id": "couleur_texte_fuchia", 1318 "name": "Texte fuchia", 1319 "className": "couleur_texte_fuchia", 1320 "openWith": "[fuchia]", 1321 "closeWith": "[\/fuchia]", 1322 "selectionType": "word", 1323 "display": true 1324 }, 1325 { 1326 "id": "couleur_texte_bleu_clair", 1327 "name": "Texte bleu clair", 1328 "className": "couleur_texte_bleu_clair", 1329 "openWith": "[bleu clair]", 1330 "closeWith": "[\/bleu clair]", 1331 "selectionType": "word", 1332 "display": true 1333 }, 1334 { 1335 "id": "couleur_texte_blanc", 1336 "name": "Texte blanc", 1337 "className": "couleur_texte_blanc", 1338 "openWith": "[blanc]", 1339 "closeWith": "[\/blanc]", 1340 "selectionType": "word", 1341 "display": true 1342 },
1343 { 1344 "id": "couleur_texte_bleu_azur", 1345 "name": "Texte bleu azur", 1346 "className": "couleur_texte_bleu_azur", 1347 "openWith": "[bleu azur]", 1348 "closeWith": "[\/bleu azur]", 1349 "selectionType": "word", 1350 "display": true 1351 }, 1352 { 1353 "id": "couleur_texte_beige", 1354 "name": "Texte beige", 1355 "className": "couleur_texte_beige", 1356 "openWith": "[beige]", 1357 "closeWith": "[\/beige]", 1358 "selectionType": "word", 1359 "display": true 1360 }, 1361 { 1362 "id": "couleur_texte_brun", 1363 "name": "Texte brun", 1364 "className": "couleur_texte_brun", 1365 "openWith": "[brun]", 1366 "closeWith": "[\/brun]", 1367 "selectionType": "word", 1368 "display": true 1369 }, 1370 { 1371 "id": "couleur_texte_bleu_violet", 1372 "name": "Texte bleu violet", 1373 "className": "couleur_texte_bleu_violet", 1374 "openWith": "[bleu violet]", 1375 "closeWith": "[\/bleu violet]", 1376 "selectionType": "word", 1377 "display": true 1378 }, 1379 { 1380 "id": "couleur_texte_brun_clair", 1381 "name": "Texte brun clair", 1382 "className": "couleur_texte_brun_clair", 1383 "openWith": "[brun clair]", 1384 "closeWith": "[\/brun clair]", 1385 "selectionType": "word", 1386 "display": true 1387 }, 1388 { 1389 "id": "couleur_texte_rose_clair", 1390 "name": "Texte rose clair", 1391 "className": "couleur_texte_rose_clair", 1392 "openWith": "[rose clair]", 1393 "closeWith": "[\/rose clair]", 1394 "selectionType": "word", 1395 "display": true 1396 }, 1397 { 1398 "id": "couleur_texte_vert_fonce", 1399 "name": "Texte vert fonce", 1400 "className": "couleur_texte_vert_fonce", 1401 "openWith": "[vert fonce]", 1402 "closeWith": "[\/vert fonce]", 1403 "selectionType": "word", 1404 "display": true 1405 }, 1406 { 1407 "id": "couleur_texte_orange_fonce", 1408 "name": "Texte orange fonce", 1409 "className": "couleur_texte_orange_fonce", 1410 "openWith": "[orange fonce]", 1411 "closeWith": "[\/orange fonce]", 1412 "selectionType": "word", 1413 "display": true 1414 }, 1415 { 1416 "id": "couleur_texte_mauve_fonce", 1417 "name": "Texte mauve fonce", 1418 "className": "couleur_texte_mauve_fonce", 1419 "openWith": "[mauve fonce]", 1420 "closeWith": "[\/mauve fonce]", 1421 "selectionType": "word", 1422 "display": true 1423 }, 1424 { 1425 "id": "couleur_texte_bleu_ciel", 1426 "name": "Texte bleu ciel", 1427 "className": "couleur_texte_bleu_ciel", 1428 "openWith": "[bleu ciel]", 1429 "closeWith": "[\/bleu ciel]", 1430 "selectionType": "word", 1431 "display": true 1432 }, 1433 { 1434 "id": "couleur_texte_or", 1435 "name": "Texte or", 1436 "className": "couleur_texte_or", 1437 "openWith": "[or]", 1438 "closeWith": "[\/or]", 1439 "selectionType": "word", 1440 "display": true 1441 }, 1442 { 1443 "id": "couleur_texte_ivoire", 1444 "name": "Texte ivoire", 1445 "className": "couleur_texte_ivoire", 1446 "openWith": "[ivoire]", 1447 "closeWith": "[\/ivoire]", 1448 "selectionType": "word", 1449 "display": true 1450 }, 1451 { 1452 "id": "couleur_texte_orange", 1453 "name": "Texte orange", 1454 "className": "couleur_texte_orange", 1455 "openWith": "[orange]", 1456 "closeWith": "[\/orange]", 1457 "selectionType": "word", 1458 "display": true 1459 }, 1460 { 1461 "id": "couleur_texte_lavande", 1462 "name": "Texte lavande", 1463 "className": "couleur_texte_lavande", 1464 "openWith": "[lavande]", 1465 "closeWith": "[\/lavande]", 1466 "selectionType": "word", 1467 "display": true 1468 }, 1469 { 1470 "id": "couleur_texte_rose", 1471 "name": "Texte rose", 1472 "className": "couleur_texte_rose", 1473 "openWith": "[rose]", 1474 "closeWith": "[\/rose]", 1475 "selectionType": "word", 1476 "display": true 1477 }, 1478 { 1479 "id": "couleur_texte_prune", 1480 "name": "Texte prune", 1481 "className": "couleur_texte_prune", 1482 "openWith": "[prune]", 1483 "closeWith": "[\/prune]", 1484 "selectionType": "word", 1485 "display": true 1486 }, 1487 { 1488 "id": "couleur_texte_saumon", 1489 "name": "Texte saumon", 1490 "className": "couleur_texte_saumon", 1491 "openWith": "[saumon]", 1492 "closeWith": "[\/saumon]", 1493 "selectionType": "word", 1494 "display": true 1495 }, 1496 { 1497 "id": "couleur_texte_neige", 1498 "name": "Texte neige", 1499 "className": "couleur_texte_neige", 1500 "openWith": "[neige]", 1501 "closeWith": "[\/neige]", 1502 "selectionType": "word", 1503 "display": true 1504 }, 1505 { 1506 "id": "couleur_texte_turquoise", 1507 "name": "Texte turquoise", 1508 "className": "couleur_texte_turquoise", 1509 "openWith": "[turquoise]", 1510 "closeWith": "[\/turquoise]", 1511 "selectionType": "word", 1512 "display": true 1513 }, 1514 { 1515 "id": "couleur_texte_jaune_paille", 1516 "name": "Texte jaune paille", 1517 "className": "couleur_texte_jaune_paille", 1518 "openWith": "[jaune paille]", 1519 "closeWith": "[\/jaune paille]", 1520 "selectionType": "word", 1521 "display": true 1522 }, 1523 { 1524 "id": "couleur_texte_jaune", 1525 "name": "Texte jaune", 1526 "className": "couleur_texte_jaune", 1527 "openWith": "[jaune]", 1528 "closeWith": "[\/jaune]", 1529 "selectionType": "word", 1530 "display": true 1531 } 1532 ] 1533 }, 1534 { 1535 "name": "Colorer le fond", 1536 "className": "cs_couleur_fond", 1537 "replaceWith": "", 1538 "dropMenu": [ 1539 { 1540 "id": "couleur_fond_noir", 1541 "name": "Fond noir", 1542 "className": "couleur_fond_noir", 1543 "openWith": "[fond noir]", 1544 "closeWith": "[\/fond noir]", 1545 "selectionType": "word", 1546 "display": true 1547 }, 1548 { 1549 "id": "couleur_fond_rouge", 1550 "name": "Fond rouge", 1551 "className": "couleur_fond_rouge", 1552 "openWith": "[fond rouge]", 1553 "closeWith": "[\/fond rouge]", 1554 "selectionType": "word", 1555 "display": true 1556 }, 1557 { 1558 "id": "couleur_fond_marron", 1559 "name": "Fond marron", 1560 "className": "couleur_fond_marron", 1561 "openWith": "[fond marron]", 1562 "closeWith": "[\/fond marron]", 1563 "selectionType": "word", 1564 "display": true 1565 }, 1566 { 1567 "id": "couleur_fond_vert", 1568 "name": "Fond vert", 1569 "className": "couleur_fond_vert", 1570 "openWith": "[fond vert]", 1571 "closeWith": "[\/fond vert]", 1572 "selectionType": "word", 1573 "display": true 1574 }, 1575 { 1576 "id": "couleur_fond_vert_olive", 1577 "name": "Fond vert olive", 1578 "className": "couleur_fond_vert_olive", 1579 "openWith": "[fond vert olive]", 1580 "closeWith": "[\/fond vert olive]", 1581 "selectionType": "word", 1582 "display": true 1583 }, 1584 { 1585 "id": "couleur_fond_bleu_marine", 1586 "name": "Fond bleu marine", 1587 "className": "couleur_fond_bleu_marine", 1588 "openWith": "[fond bleu marine]", 1589 "closeWith": "[\/fond bleu marine]", 1590 "selectionType": "word", 1591 "display": true 1592 }, 1593 { 1594 "id": "couleur_fond_violet", 1595 "name": "Fond violet", 1596 "className": "couleur_fond_violet", 1597 "openWith": "[fond violet]", 1598 "closeWith": "[\/fond violet]", 1599 "selectionType": "word", 1600 "display": true 1601 }, 1602 { 1603 "id": "couleur_fond_gris", 1604 "name": "Fond gris", 1605 "className": "couleur_fond_gris", 1606 "openWith": "[fond gris]", 1607 "closeWith": "[\/fond gris]", 1608 "selectionType": "word", 1609 "display": true 1610 }, 1611 { 1612 "id": "couleur_fond_argent", 1613 "name": "Fond argent", 1614 "className": "couleur_fond_argent", 1615 "openWith": "[fond argent]", 1616 "closeWith": "[\/fond argent]", 1617 "selectionType": "word", 1618 "display": true 1619 }, 1620 { 1621 "id": "couleur_fond_vert_clair", 1622 "name": "Fond vert clair", 1623 "className": "couleur_fond_vert_clair", 1624 "openWith": "[fond vert clair]", 1625 "closeWith": "[\/fond vert clair]", 1626 "selectionType": "word", 1627 "display": true 1628 }, 1629 { 1630 "id": "couleur_fond_bleu", 1631 "name": "Fond bleu", 1632 "className": "couleur_fond_bleu", 1633 "openWith": "[fond bleu]", 1634 "closeWith": "[\/fond bleu]", 1635 "selectionType": "word", 1636 "display": true 1637 }, 1638 { 1639 "id": "couleur_fond_fuchia", 1640 "name": "Fond fuchia", 1641 "className": "couleur_fond_fuchia", 1642 "openWith": "[fond fuchia]", 1643 "closeWith": "[\/fond fuchia]", 1644 "selectionType": "word", 1645 "display": true 1646 }, 1647 { 1648 "id": "couleur_fond_bleu_clair", 1649 "name": "Fond bleu clair", 1650 "className": "couleur_fond_bleu_clair", 1651 "openWith": "[fond bleu clair]", 1652 "closeWith": "[\/fond bleu clair]", 1653 "selectionType": "word", 1654 "display": true 1655 }, 1656 { 1657 "id": "couleur_fond_blanc", 1658 "name": "Fond blanc", 1659 "className": "couleur_fond_blanc", 1660 "openWith": "[fond blanc]", 1661 "closeWith": "[\/fond blanc]", 1662 "selectionType": "word", 1663 "display": true 1664 }, 1665 { 1666 "id": "couleur_fond_bleu_azur", 1667 "name": "Fond bleu azur", 1668 "className": "couleur_fond_bleu_azur", 1669 "openWith": "[fond bleu azur]", 1670 "closeWith": "[\/fond bleu azur]", 1671 "selectionType": "word", 1672 "display": true 1673 }, 1674 { 1675 "id": "couleur_fond_beige", 1676 "name": "Fond beige", 1677 "className": "couleur_fond_beige", 1678 "openWith": "[fond beige]", 1679 "closeWith": "[\/fond beige]", 1680 "selectionType": "word", 1681 "display": true 1682 }, 1683 { 1684 "id": "couleur_fond_brun", 1685 "name": "Fond brun", 1686 "className": "couleur_fond_brun", 1687 "openWith": "[fond brun]", 1688 "closeWith": "[\/fond brun]", 1689 "selectionType": "word", 1690 "display": true 1691 }, 1692 { 1693 "id": "couleur_fond_bleu_violet", 1694 "name": "Fond bleu violet", 1695 "className": "couleur_fond_bleu_violet", 1696 "openWith": "[fond bleu violet]", 1697 "closeWith": "[\/fond bleu violet]", 1698 "selectionType": "word", 1699 "display": true 1700 }, 1701 { 1702 "id": "couleur_fond_brun_clair", 1703 "name": "Fond brun clair", 1704 "className": "couleur_fond_brun_clair", 1705 "openWith": "[fond brun clair]", 1706 "closeWith": "[\/fond brun clair]", 1707 "selectionType": "word", 1708 "display": true 1709 }, 1710 { 1711 "id": "couleur_fond_rose_clair", 1712 "name": "Fond rose clair", 1713 "className": "couleur_fond_rose_clair", 1714 "openWith": "[fond rose clair]", 1715 "closeWith": "[\/fond rose clair]", 1716 "selectionType": "word", 1717 "display": true 1718 }, 1719 { 1720 "id": "couleur_fond_vert_fonce", 1721 "name": "Fond vert fonce", 1722 "className": "couleur_fond_vert_fonce", 1723 "openWith": "[fond vert fonce]", 1724 "closeWith": "[\/fond vert fonce]", 1725 "selectionType": "word", 1726 "display": true 1727 }, 1728 { 1729 "id": "couleur_fond_orange_fonce", 1730 "name": "Fond orange fonce", 1731 "className": "couleur_fond_orange_fonce", 1732 "openWith": "[fond orange fonce]", 1733 "closeWith": "[\/fond orange fonce]", 1734 "selectionType": "word", 1735 "display": true 1736 }, 1737 { 1738 "id": "couleur_fond_mauve_fonce", 1739 "name": "Fond mauve fonce", 1740 "className": "couleur_fond_mauve_fonce", 1741 "openWith": "[fond mauve fonce]", 1742 "closeWith"
1742: "[\/fond mauve fonce]", 1743 "selectionType": "word", 1744 "display": true 1745 }, 1746 { 1747 "id": "couleur_fond_bleu_ciel", 1748 "name": "Fond bleu ciel", 1749 "className": "couleur_fond_bleu_ciel", 1750 "openWith": "[fond bleu ciel]", 1751 "closeWith": "[\/fond bleu ciel]", 1752 "selectionType": "word", 1753 "display": true 1754 }, 1755 { 1756 "id": "couleur_fond_or", 1757 "name": "Fond or", 1758 "className": "couleur_fond_or", 1759 "openWith": "[fond or]", 1760 "closeWith": "[\/fond or]", 1761 "selectionType": "word", 1762 "display": true 1763 }, 1764 { 1765 "id": "couleur_fond_ivoire", 1766 "name": "Fond ivoire", 1767 "className": "couleur_fond_ivoire", 1768 "openWith": "[fond ivoire]", 1769 "closeWith": "[\/fond ivoire]", 1770 "selectionType": "word", 1771 "display": true 1772 }, 1773 { 1774 "id": "couleur_fond_orange", 1775 "name": "Fond orange", 1776 "className": "couleur_fond_orange", 1777 "openWith": "[fond orange]", 1778 "closeWith": "[\/fond orange]", 1779 "selectionType": "word", 1780 "display": true 1781 }, 1782 { 1783 "id": "couleur_fond_lavande", 1784 "name": "Fond lavande", 1785 "className": "couleur_fond_lavande", 1786 "openWith": "[fond lavande]", 1787 "closeWith": "[\/fond lavande]", 1788 "selectionType": "word", 1789 "display": true 1790 }, 1791 { 1792 "id": "couleur_fond_rose", 1793 "name": "Fond rose", 1794 "className": "couleur_fond_rose", 1795 "openWith": "[fond rose]", 1796 "closeWith": "[\/fond rose]", 1797 "selectionType": "word", 1798 "display": true 1799 }, 1800 { 1801 "id": "couleur_fond_prune", 1802 "name": "Fond prune", 1803 "className": "couleur_fond_prune", 1804 "openWith": "[fond prune]", 1805 "closeWith": "[\/fond prune]", 1806 "selectionType": "word", 1807 "display": true 1808 }, 1809 { 1810 "id": "couleur_fond_saumon", 1811 "name": "Fond saumon", 1812 "className": "couleur_fond_saumon", 1813 "openWith": "[fond saumon]", 1814 "closeWith": "[\/fond saumon]", 1815 "selectionType": "word", 1816 "display": true 1817 }, 1818 { 1819 "id": "couleur_fond_neige", 1820 "name": "Fond neige", 1821 "className": "couleur_fond_neige", 1822 "openWith": "[fond neige]", 1823 "closeWith": "[\/fond neige]", 1824 "selectionType": "word", 1825 "display": true 1826 }, 1827 { 1828 "id": "couleur_fond_turquoise", 1829 "name": "Fond turquoise", 1830 "className": "couleur_fond_turquoise", 1831 "openWith": "[fond turquoise]", 1832 "closeWith": "[\/fond turquoise]", 1833 "selectionType": "word", 1834 "display": true 1835 }, 1836 { 1837 "id": "couleur_fond_jaune_paille", 1838 "name": "Fond jaune paille", 1839 "className": "couleur_fond_jaune_paille", 1840 "openWith": "[fond jaune paille]", 1841 "closeWith": "[\/fond jaune paille]", 1842 "selectionType": "word", 1843 "display": true 1844 }, 1845 { 1846 "id": "couleur_fond_jaune", 1847 "name": "Fond jaune", 1848 "className": "couleur_fond_jaune", 1849 "openWith": "[fond jaune]", 1850 "closeWith": "[\/fond jaune]", 1851 "selectionType": "word", 1852 "display": true 1853 } 1854 ] 1855 }, 1856 { 1857 "name": "Appliquer au texte une \u00ab\u00a0d\u00e9c
1857oration\u00a0\u00bb personnalis\u00e9e", 1858 "className": "cs_decoration_drop separateur_avant", 1859 "replaceWith": "", 1860 "dropMenu": [ 1861 { 1862 "id": "decoration_sc", 1863 "name": "D\u00e9coration \u00ab\u00a0span.sc\u00a0\u00bb", 1864 "className": "decoration_sc", 1865 "selectionType": "word", 1866 "replaceWith": function(h){ return outil_decoration(h.selection, 'sc', 'span', '<sc/>'); }, 1867 "display": true 1868 }, 1869 { 1870 "id": "decoration_souligne", 1871 "name": "D\u00e9coration \u00ab\u00a0span.souligne\u00a0\u00bb", 1872 "className": "decoration_souligne", 1873 "selectionType": "word", 1874 "replaceWith": function(h){ return outil_decoration(h.selection, 'souligne', 'span', '<souligne/>'); }, 1875 "display": true 1876 }, 1877 { 1878 "id": "decoration_barre", 1879 "name": "D\u00e9coration \u00ab\u00a0span.barre\u00a0\u00bb", 1880 "className": "decoration_barre", 1881 "selectionType": "word", 1882 "replaceWith": function(h){ return outil_decoration(h.selection, 'barre', 'span', '<barre/>'); }, 1883 "display": true 1884 }, 1885 { 1886 "id": "decoration_dessus", 1887 "name": "D\u00e9coration \u00ab\u00a0span.dessus\u00a0\u00bb", 1888 "className": "decoration_dessus", 1889 "selectionType": "word", 1890 "replaceWith": function(h){ return outil_decoration(h.selection, 'dessus', 'span', '<dessus/>'); }, 1891 "display": true 1892 }, 1893 { 1894 "id": "decoration_clignote", 1895 "name": "D\u00e9coration \u00ab\u00a0span.clignote\u00a0\u00bb", 1896 "className": "decoration_clignote", 1897 "selectionType": "word", 1898 "replaceWith": function(h){ return outil_decoration(h.selection, 'clignote', 'span', '<clignote/>'); }, 1899 "display": true 1900 }, 1901 { 1902 "id": "decoration_surfluo", 1903 "name": "D\u00e9coration \u00ab\u00a0span.surfluo\u00a0\u00bb", 1904 "className": "decoration_surfluo", 1905 "selectionType": "word", 1906 "replaceWith": function(h){ return outil_decoration(h.selection, 'surfluo', 'span', '<surfluo/>'); }, 1907 "display": true 1908 }, 1909 { 1910 "id": "decoration_surgris", 1911 "name": "D\u00e9coration \u00ab\u00a0span.surgris\u00a0\u00bb", 1912 "className": "decoration_surgris", 1913 "selectionType": "word", 1914 "replaceWith": function(h){ return outil_decoration(h.selection, 'surgris', 'span', '<surgris/>'); }, 1915 "display": true 1916 } 1917 ] 1918 }, 1919 { 1920 "name": "Transformer en [lien hypertexte->http:\/\/...]", 1921 "key": "L", 1922 "className": "outil_link separateur separateur_apres sepLink separateur_avant", 1923 "openWith": "[", 1924 "closeWith": "->[![Veuillez indiquer l\u2019adresse de votre lien (vous pouvez indiquer une adresse Internet sous la forme http:\/\/www.monsite.com, une adresse courriel, ou simplement indiquer le num\u00e9ro d\u2019un article de ce site.]!]]" 1925 }, 1926 { 1927 "name": "<quote>Citer un message<\/quote>", 1928 "key": "Q", 1929 "className": "outil_quote separateur separateur_apres sepGuillemets", 1930 "openWith": "\n<quote>", 1931 "closeWith": "<\/quote>\n", 1932 "selectionType": "word" 1933 }, 1934 { 1935 "name": "Entourer de \u00ab\u00a0guillemets\u00a0\u00bb", 1936 "className": "outil_guillemets", 1937 "openWith": "«", 1938 "closeWith": "»", 1939 "lang": [ 1940 "fr", 1941 "eo", 1942 "cpf", 1943 "ar", 1944 "es" 1945 ], 1946 "selectionType": "word", 1947 "dropMenu": [ 1948 { 1949 "id": "guillemets_simples", 1950 "name": "Entourer de \u201cguillemets de second niveau\u201d", 1951 "className": "outil_guillemets_simples", 1952 "openWith": "â", 1953 "closeWith": "â", 1954 "display": true, 1955 "lang": [ 1956 "fr", 1957 "eo", 1958 "cpf", 1959 "ar", 1960 "es" 1961 ], 1962 "selectionType": "word" 1963 } 1964 ] 1965 }, 1966 {
1967 "name": "Entourer de \u00ab\u00a0guillemets\u00a0\u00bb", 1968 "className": "outil_guillemets_de", 1969 "openWith": "â", 1970 "closeWith": "â", 1971 "lang": [ 1972 "bg", 1973 "de", 1974 "pl", 1975 "hr", 1976 "src" 1977 ], 1978 "selectionType": "word", 1979 "dropMenu": [ 1980 { 1981 "id": "guillemets_de_simples", 1982 "name": "Entourer de \u201cguillemets de second niveau\u201d", 1983 "className": "outil_guillemets_de_simples", 1984 "openWith": "‚", 1985 "closeWith": "â", 1986 "display": true, 1987 "lang": [ 1988 "bg", 1989 "de", 1990 "pl", 1991 "hr", 1992 "src" 1993 ], 1994 "selectionType": "word" 1995 } 1996 ] 1997 }, 1998 { 1999 "name": "Entourer de \u00ab\u00a0guillemets\u00a0\u00bb", 2000 "className": "outil_guillemets_simples separateur_avant", 2001 "openWith": "â", 2002 "closeWith": "â", 2003 "lang_not": [ 2004 "fr", 2005 "eo", 2006 "cpf", 2007 "ar", 2008 "es", 2009 "bg", 2010 "de", 2011 "pl", 2012 "hr", 2013 "src" 2014 ], 2015 "selectionType": "word", 2016 "dropMenu": [ 2017 { 2018 "id": "guillemets_autres_simples", 2019 "name": "Entourer de \u201cguillemets de second niveau\u201d", 2020 "className": "outil_guillemets_uniques", 2021 "openWith": "â", 2022 "closeWith": "â", 2023 "display": true, 2024 "lang_not": [ 2025 "fr", 2026 "eo", 2027 "cpf", 2028 "ar", 2029 "es", 2030 "bg", 2031 "de", 2032 "pl", 2033 "hr", 2034 "src" 2035 ], 2036 "selectionType": "word" 2037 } 2038 ] 2039 } 2040 ] 2041} 2042 2043 2044 // remplace ou cree -* ou -** ou -# ou -## 2045 function outil_liste(h, c) { 2046 if ((s = h.selection) && (r = s.match(/^-([*#]+) (.*)$/))) { 2047 r[1] = r[1].replace(/[#*]/g, c); 2048 s = '-'+r[1]+' '+r[2]; 2049 } else { 2050 s = '-' + c + ' '+s; 2051 } 2052 return s; 2053 } 2054 2055 // indente des -* ou -# 2056 function outil_indenter(h) { 2057 if (s = h.selection) { 2058 if (s.substr(0,2)=='-*') { 2059 s = '-**' + s.substr(2); 2060 } else if (s.substr(0,2)=='-#') { 2061 s = '-##' + s.substr(2); 2062 } else { 2063 s = '-* ' + s; 2064 } 2065 } 2066 return s; 2067 } 2068 2069 // desindente des -* ou -** ou -# ou -## 2070 function outil_desindenter(h){ 2071 if (s = h.selection) { 2072 if (s.substr(0,3)=='-**') { 2073 s = '-*' + s.substr(3); 2074 } else if (s.substr(0,3)=='-* ') { 2075 s = s.substr(3); 2076 } else if (s.substr(0,3)=='-##') { 2077 s = '-#' + s.substr(3); 2078 } else if (s.substr(0,3)=='-# ') { 2079 s = s.substr(3); 2080 } 2081 } 2082 return s; 2083 } 2084 2085 // ajouter un espace avant, apres un {qqc} pour ne pas que 2086 // gras {{}} suivi de italique {} donnent {{{}}}, mais { {{}} } 2087 function espace_si_accolade(h, openWith, closeWith){ 2088 if (s = h.selection) { 2089 // accolade dans la selection 2090 if (s.charAt(0)=='{') { 2091 return openWith + ' ' + s + ' ' + closeWith; 2092 } 2093 // accolade avant la selection 2094 else if (c = h.textarea.selectionStart) { 2095 if (h.textarea.value.charAt(c-1) == '{') { 2096 return ' ' + openWith + s + closeWith + ' '; 2097 } 2098 } 2099 } 2100 return openWith + s + closeWith; 2101 } 2102 2103function outil_decoration(sel, racc, balise, defaut) { 2104 if(sel) { 2105 r='<'+racc+'>'+sel+'</'+racc+'>'; 2106 return balise=='span'?r.replace(/(\n\n|\r\n\r\n|\r\r)/g,'</'+racc+'>$1<'+racc+'>'):r; 2107 } 2108 return defaut; 2109 } 2110 2111 2112barre_outils_vide = { 2113 "nameSpace": "vide", 2114 "previewAutoRefresh": false, 2115 "markupSet": [] 2116} 2117 2118 2119function outil_decoration(sel, racc, balise, defaut) { 2120 if(sel) { 2121 r='<'+racc+'>'+sel+'</'+racc+'>'; 2122 return balise=='span'?r.replace(/(\n\n|\r\n\r\n|\r\r)/g,'</'+racc+'>$1<'+racc+'>'):r; 2123 } 2124 return defaut; 2125 } 2126 2127 2128 2129;(function($){ 2130 2131// 2 fonctions pour appeler le porte plume reutilisables pour d'autres plugins 2132// on envoie dedans la selection jquery qui doit etre effectuee 2133// ce qui evite des appels direct a markitup, aucazou on change de lib un j
2133our 2134$.fn.barre_outils = function(nom, settings) { 2135 options = { 2136 lang:'fr' 2137 }; 2138 $.extend(options, settings); 2139 2140 return $(this) 2141 .not('.markItUpEditor, .no_barre') 2142 .markItUp(eval('barre_outils_' + nom), {lang:options.lang}) 2143 .trigger('markItUpEditor.loaded') 2144 .parent().find('.markItUpButton a').attr('tabindex', -1) // ne pas tabuler les boutons 2145 .end(); 2146}; 2147 2148$.fn.barre_previsualisation = function(settings) { 2149 options = { 2150 previewParserPath:"index.php?action=porte_plume_previsu", // ici une url relative pour prive/public 2151 textEditer:"Modifier", 2152 textVoir:"Voir" 2153 }; 2154 $.extend(options, settings); 2155 2156 return $(this) 2157 .not('.pp_previsualisation, .no_previsualisation') 2158 .previsu_spip(options) 2159 .trigger('markItUpPreview.loaded') 2160 .parent().find('.markItUpTabs a').attr('tabindex', -1) // ne pas tabuler les onglets 2161 .end(); 2162}; 2163 2164$(window).on('load', function(){ 2165 // ajoute les barres d'outils markitup 2166 function barrebouilles(){ 2167 // fonction generique appliquee aux classes CSS : 2168 // inserer_barre_forum, inserer_barre_edition, inserer_previsualisation 2169 $('.formulaire_spip textarea.inserer_barre_forum').barre_outils('forum'); 2170 $('.formulaire_spip textarea.inserer_barre_edition').barre_outils('edition'); 2171 $('.formulaire_spip textarea.inserer_previsualisation').barre_previsualisation(); 2172 2173 2174 // fonction specifique aux formulaires de SPIP : 2175 // barre de forum 2176 $('textarea.textarea_forum').barre_outils('forum'); 2177 2178 $('.formulaire_forum textarea[name=texte]').barre_outils('forum'); 2179 // barre d'edition et onglets de previsualisation 2180 $('.formulaire_spip textarea[name=texte]') 2181 .barre_outils('edition').end() 2182 .barre_previsualisation(); 2183 2184 } 2185 barrebouilles(); 2186 onAjaxLoad(barrebouilles); 2187 2188}); 2189})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.