File "jsdyn-javascript_porte_plume_start_js-e359e519.js"
Full Path: /home/spiraleeea/www/spirale/local/cache-js/jsdyn-javascript_porte_plume_start_js-e359e519.js
File size: 73.25 KB
MIME-type: text/plain
Charset: utf-8
/* #PRODUIRE{fond=javascript/porte_plume_start.js,hash=d60b6d09a7a5910b156f120a5a436f39,inserer_auto_name_texte=1,lang=fr}
md5:f4a7560b887a195d8e4423c05dd49dbe */
barre_outils_edition = {
"nameSpace": "edition",
"previewAutoRefresh": false,
"onEnter": {
"keepDefault": false,
"selectionType": "return",
"replaceWith": "\n"
},
"onShiftEnter": {
"keepDefault": false,
"replaceWith": "\n_ "
},
"onCtrlEnter": {
"keepDefault": false,
"replaceWith": "\n\n"
},
"markupSet": [
{
"name": "Transformer en {{{intertitre}}}",
"key": "H",
"className": "outil_header1",
"openWith": "\n{{{",
"closeWith": "}}}\n",
"selectionType": "line"
},
{
"name": "Mettre en {{gras}}",
"key": "B",
"className": "outil_bold",
"replaceWith": function(h){ return espace_si_accolade(h, '{{', '}}');},
"selectionType": "word"
},
{
"name": "Mettre en {italique}",
"key": "I",
"className": "outil_italic",
"replaceWith": function(h){ return espace_si_accolade(h, '{', '}');},
"selectionType": "word"
},
{
"name": "Colorer le texte",
"className": "cs_couleur_texte",
"replaceWith": "",
"dropMenu": [
{
"id": "couleur_texte_noir",
"name": "Texte noir",
"className": "couleur_texte_noir",
"openWith": "[noir]",
"closeWith": "[\/noir]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_rouge",
"name": "Texte rouge",
"className": "couleur_texte_rouge",
"openWith": "[rouge]",
"closeWith": "[\/rouge]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_marron",
"name": "Texte marron",
"className": "couleur_texte_marron",
"openWith": "[marron]",
"closeWith": "[\/marron]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_vert",
"name": "Texte vert",
"className": "couleur_texte_vert",
"openWith": "[vert]",
"closeWith": "[\/vert]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_vert_olive",
"name": "Texte vert olive",
"className": "couleur_texte_vert_olive",
"openWith": "[vert olive]",
"closeWith": "[\/vert olive]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_bleu_marine",
"name": "Texte bleu marine",
"className": "couleur_texte_bleu_marine",
"openWith": "[bleu marine]",
"closeWith": "[\/bleu marine]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_violet",
"name": "Texte violet",
"className": "couleur_texte_violet",
"openWith": "[violet]",
"closeWith": "[\/violet]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_gris",
"name": "Texte gris",
"className": "couleur_texte_gris",
"openWith": "[gris]",
"closeWith": "[\/gris]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_argent",
"name": "Texte argent",
"className": "couleur_texte_argent",
"openWith": "[argent]",
"closeWith": "[\/argent]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_vert_clair",
"name": "Texte vert clair",
"className": "couleur_texte_vert_clair",
"openWith": "[vert clair]",
"closeWith": "[\/vert clair]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_bleu",
"name": "Texte bleu",
"className": "couleur_texte_bleu",
"openWith": "[bleu]",
"closeWith": "[\/bleu]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_fuchia",
"name": "Texte fuchia",
"className": "couleur_texte_fuchia",
"openWith": "[fuchia]",
"closeWith": "[\/fuchia]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_bleu_clair",
"name": "Texte bleu clair",
"className": "couleur_texte_bleu_clair",
"openWith": "[bleu clair]",
"closeWith": "[\/bleu clair]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_blanc",
"name": "Texte blanc",
"className": "couleur_texte_blanc",
"openWith": "[blanc]",
"closeWith": "[\/blanc]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_bleu_azur",
"name": "Texte bleu azur",
"className": "couleur_texte_bleu_azur",
"openWith": "[bleu azur]",
"closeWith": "[\/bleu azur]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_beige",
"name": "Texte beige",
"className": "couleur_texte_beige",
"openWith": "[beige]",
"closeWith": "[\/beige]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_brun",
"name": "Texte brun",
"className": "couleur_texte_brun",
"openWith": "[brun]",
"closeWith": "[\/brun]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_bleu_violet",
"name": "Texte bleu violet",
"className": "couleur_texte_bleu_violet",
"openWith": "[bleu violet]",
"closeWith": "[\/bleu violet]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_brun_clair",
"name": "Texte brun clair",
"className": "couleur_texte_brun_clair",
"openWith": "[brun clair]",
"closeWith": "[\/brun clair]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_rose_clair",
"name": "Texte rose clair",
"className": "couleur_texte_rose_clair",
"openWith": "[rose clair]",
"closeWith": "[\/rose clair]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_vert_fonce",
"name": "Texte vert fonce",
"className": "couleur_texte_vert_fonce",
"openWith": "[vert fonce]",
"closeWith": "[\/vert fonce]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_orange_fonce",
"name": "Texte orange fonce",
"className": "couleur_texte_orange_fonce",
"openWith": "[orange fonce]",
"closeWith": "[\/orange fonce]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_mauve_fonce",
"name": "Texte mauve fonce",
"className": "couleur_texte_mauve_fonce",
"openWith": "[mauve fonce]",
"closeWith": "[\/mauve fonce]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_bleu_ciel",
"name": "Texte bleu ciel",
"className": "couleur_texte_bleu_ciel",
"openWith": "[bleu ciel]",
"closeWith": "[\/bleu ciel]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_or",
"name": "Texte or",
"className": "couleur_texte_or",
"openWith": "[or]",
"closeWith": "[\/or]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_ivoire",
"name": "Texte ivoire",
"className": "couleur_texte_ivoire",
"openWith": "[ivoire]",
"closeWith": "[\/ivoire]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_orange",
"name": "Texte orange",
"className": "couleur_texte_orange",
"openWith": "[orange]",
"closeWith": "[\/orange]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_lavande",
"name": "Texte lavande",
"className": "couleur_texte_lavande",
"openWith": "[lavande]",
"closeWith": "[\/lavande]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_rose",
"name": "Texte rose",
"className": "couleur_texte_rose",
"openWith": "[rose]",
"closeWith": "[\/rose]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_prune",
"name": "Texte prune",
"className": "couleur_texte_prune",
"openWith": "[prune]",
"closeWith": "[\/prune]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_saumon",
"name": "Texte saumon",
"className": "couleur_texte_saumon",
"openWith": "[saumon]",
"closeWith": "[\/saumon]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_neige",
"name": "Texte neige",
"className": "couleur_texte_neige",
"openWith": "[neige]",
"closeWith": "[\/neige]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_turquoise",
"name": "Texte turquoise",
"className": "couleur_texte_turquoise",
"openWith": "[turquoise]",
"closeWith": "[\/turquoise]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_jaune_paille",
"name": "Texte jaune paille",
"className": "couleur_texte_jaune_paille",
"openWith": "[jaune paille]",
"closeWith": "[\/jaune paille]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_jaune",
"name": "Texte jaune",
"className": "couleur_texte_jaune",
"openWith": "[jaune]",
"closeWith": "[\/jaune]",
"selectionType": "word",
"display": true
}
]
},
{
"name": "Colorer le fond",
"className": "cs_couleur_fond",
"replaceWith": "",
"dropMenu": [
{
"id": "couleur_fond_noir",
"name": "Fond noir",
"className": "couleur_fond_noir",
"openWith": "[fond noir]",
"closeWith": "[\/fond noir]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_rouge",
"name": "Fond rouge",
"className": "couleur_fond_rouge",
"openWith": "[fond rouge]",
"closeWith": "[\/fond rouge]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_marron",
"name": "Fond marron",
"className": "couleur_fond_marron",
"openWith": "[fond marron]",
"closeWith": "[\/fond marron]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_vert",
"name": "Fond vert",
"className": "couleur_fond_vert",
"openWith": "[fond vert]",
"closeWith": "[\/fond vert]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_vert_olive",
"name": "Fond vert olive",
"className": "couleur_fond_vert_olive",
"openWith": "[fond vert olive]",
"closeWith": "[\/fond vert olive]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_bleu_marine",
"name": "Fond bleu marine",
"className": "couleur_fond_bleu_marine",
"openWith": "[fond bleu marine]",
"closeWith": "[\/fond bleu marine]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_violet",
"name": "Fond violet",
"className": "couleur_fond_violet",
"openWith": "[fond violet]",
"closeWith": "[\/fond violet]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_gris",
"name": "Fond gris",
"className": "couleur_fond_gris",
"openWith": "[fond gris]",
"closeWith": "[\/fond gris]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_argent",
"name": "Fond argent",
"className": "couleur_fond_argent",
"openWith": "[fond argent]",
"closeWith": "[\/fond argent]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_vert_clair",
"name": "Fond vert clair",
"className": "couleur_fond_vert_clair",
"openWith": "[fond vert clair]",
"closeWith": "[\/fond vert clair]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_bleu",
"name": "Fond bleu",
"className": "couleur_fond_bleu",
"openWith": "[fond bleu]",
"closeWith": "[\/fond bleu]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_fuchia",
"name": "Fond fuchia",
"className": "couleur_fond_fuchia",
"openWith": "[fond fuchia]",
"closeWith": "[\/fond fuchia]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_bleu_clair",
"name": "Fond bleu clair",
"className": "couleur_fond_bleu_clair",
"openWith": "[fond bleu clair]",
"closeWith": "[\/fond bleu clair]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_blanc",
"name": "Fond blanc",
"className": "couleur_fond_blanc",
"openWith": "[fond blanc]",
"closeWith": "[\/fond blanc]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_bleu_azur",
"name": "Fond bleu azur",
"className": "couleur_fond_bleu_azur",
"openWith": "[fond bleu azur]",
"closeWith": "[\/fond bleu azur]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_beige",
"name": "Fond beige",
"className": "couleur_fond_beige",
"openWith": "[fond beige]",
"closeWith": "[\/fond beige]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_brun",
"name": "Fond brun",
"className": "couleur_fond_brun",
"openWith": "[fond brun]",
"closeWith": "[\/fond brun]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_bleu_violet",
"name": "Fond bleu violet",
"className": "couleur_fond_bleu_violet",
"openWith": "[fond bleu violet]",
"closeWith": "[\/fond bleu violet]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_brun_clair",
"name": "Fond brun clair",
"className": "couleur_fond_brun_clair",
"openWith": "[fond brun clair]",
"closeWith": "[\/fond brun clair]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_rose_clair",
"name": "Fond rose clair",
"className": "couleur_fond_rose_clair",
"openWith": "[fond rose clair]",
"closeWith": "[\/fond rose clair]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_vert_fonce",
"name": "Fond vert fonce",
"className": "couleur_fond_vert_fonce",
"openWith": "[fond vert fonce]",
"closeWith": "[\/fond vert fonce]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_orange_fonce",
"name": "Fond orange fonce",
"className": "couleur_fond_orange_fonce",
"openWith": "[fond orange fonce]",
"closeWith": "[\/fond orange fonce]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_mauve_fonce",
"name": "Fond mauve fonce",
"className": "couleur_fond_mauve_fonce",
"openWith": "[fond mauve fonce]",
"closeWith": "[\/fond mauve fonce]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_bleu_ciel",
"name": "Fond bleu ciel",
"className": "couleur_fond_bleu_ciel",
"openWith": "[fond bleu ciel]",
"closeWith": "[\/fond bleu ciel]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_or",
"name": "Fond or",
"className": "couleur_fond_or",
"openWith": "[fond or]",
"closeWith": "[\/fond or]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_ivoire",
"name": "Fond ivoire",
"className": "couleur_fond_ivoire",
"openWith": "[fond ivoire]",
"closeWith": "[\/fond ivoire]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_orange",
"name": "Fond orange",
"className": "couleur_fond_orange",
"openWith": "[fond orange]",
"closeWith": "[\/fond orange]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_lavande",
"name": "Fond lavande",
"className": "couleur_fond_lavande",
"openWith": "[fond lavande]",
"closeWith": "[\/fond lavande]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_rose",
"name": "Fond rose",
"className": "couleur_fond_rose",
"openWith": "[fond rose]",
"closeWith": "[\/fond rose]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_prune",
"name": "Fond prune",
"className": "couleur_fond_prune",
"openWith": "[fond prune]",
"closeWith": "[\/fond prune]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_saumon",
"name": "Fond saumon",
"className": "couleur_fond_saumon",
"openWith": "[fond saumon]",
"closeWith": "[\/fond saumon]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_neige",
"name": "Fond neige",
"className": "couleur_fond_neige",
"openWith": "[fond neige]",
"closeWith": "[\/fond neige]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_turquoise",
"name": "Fond turquoise",
"className": "couleur_fond_turquoise",
"openWith": "[fond turquoise]",
"closeWith": "[\/fond turquoise]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_jaune_paille",
"name": "Fond jaune paille",
"className": "couleur_fond_jaune_paille",
"openWith": "[fond jaune paille]",
"closeWith": "[\/fond jaune paille]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_jaune",
"name": "Fond jaune",
"className": "couleur_fond_jaune",
"openWith": "[fond jaune]",
"closeWith": "[\/fond jaune]",
"selectionType": "word",
"display": true
}
]
},
{
"name": "Mettre en liste",
"className": "outil_liste_ul separateur_avant",
"replaceWith": function(h){ return outil_liste(h, '*');},
"selectionType": "line",
"forceMultiline": true,
"dropMenu": [
{
"id": "liste_ol",
"name": "Mettre en liste num\u00e9rot\u00e9e",
"className": "outil_liste_ol",
"replaceWith": function(h){ return outil_liste(h, '#');},
"display": true,
"selectionType": "line",
"forceMultiline": true
},
{
"id": "desindenter",
"name": "D\u00e9sindenter une liste",
"className": "outil_desindenter",
"replaceWith": function(h){return outil_desindenter(h);},
"display": true,
"selectionType": "line",
"forceMultiline": true
},
{
"id": "indenter",
"name": "Indenter une liste",
"className": "outil_indenter",
"replaceWith": function(h){return outil_indenter(h);},
"display": true,
"selectionType": "line",
"forceMultiline": true
}
]
},
{
"name": "Transformer en [lien hypertexte->http:\/\/...]",
"key": "L",
"className": "outil_link separateur separateur_apres sepLink",
"openWith": "[",
"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.]!]]"
},
{
"name": "Transformer en [[Note de bas de page]]",
"className": "outil_notes separateur_avant",
"openWith": "[[",
"closeWith": "]]",
"selectionType": "word"
},
{
"name": "<quote>Citer un message<\/quote>",
"key": "Q",
"className": "outil_quote separateur separateur_apres sepGuillemets",
"openWith": "\n<quote>",
"closeWith": "<\/quote>\n",
"selectionType": "word",
"dropMenu": [
{
"id": "barre_poesie",
"name": "Mettre en forme comme une <poesie>po\u00e9sie<\/poesie>",
"className": "outil_poesie",
"openWith": "\n<poesie>",
"closeWith": "<\/poesie>\n",
"display": true,
"selectionType": "line"
}
]
},
{
"name": "Entourer de \u00ab\u00a0guillemets\u00a0\u00bb",
"className": "outil_guillemets",
"openWith": "«",
"closeWith": "»",
"lang": [
"fr",
"eo",
"cpf",
"ar",
"es"
],
"selectionType": "word",
"dropMenu": [
{
"id": "guillemets_simples",
"name": "Entourer de \u201cguillemets de second niveau\u201d",
"className": "outil_guillemets_simples",
"openWith": "“",
"closeWith": "”",
"display": true,
"lang": [
"fr",
"eo",
"cpf",
"ar",
"es"
],
"selectionType": "word"
}
]
},
{
"name": "Entourer de \u00ab\u00a0guillemets\u00a0\u00bb",
"className": "outil_guillemets_de",
"openWith": "„",
"closeWith": "“",
"lang": [
"bg",
"de",
"pl",
"hr",
"src"
],
"selectionType": "word",
"dropMenu": [
{
"id": "guillemets_de_simples",
"name": "Entourer de \u201cguillemets de second niveau\u201d",
"className": "outil_guillemets_de_simples",
"openWith": "‚",
"closeWith": "‘",
"display": true,
"lang": [
"bg",
"de",
"pl",
"hr",
"src"
],
"selectionType": "word"
}
]
},
{
"name": "Entourer de \u00ab\u00a0guillemets\u00a0\u00bb",
"className": "outil_guillemets_simples separateur_avant",
"openWith": "“",
"closeWith": "”",
"lang_not": [
"fr",
"eo",
"cpf",
"ar",
"es",
"bg",
"de",
"pl",
"hr",
"src"
],
"selectionType": "word",
"dropMenu": [
{
"id": "guillemets_autres_simples",
"name": "Entourer de \u201cguillemets de second niveau\u201d",
"className": "outil_guillemets_uniques",
"openWith": "‘",
"closeWith": "’",
"display": true,
"lang_not": [
"fr",
"eo",
"cpf",
"ar",
"es",
"bg",
"de",
"pl",
"hr",
"src"
],
"selectionType": "word"
}
]
},
{
"name": "Ins\u00e9rer des caract\u00e8res sp\u00e9cifiques",
"className": "outil_caracteres separateur separateur_apres sepCaracteres separateur_avant",
"dropMenu": [
{
"id": "A_grave",
"name": "Ins\u00e9rer un \u00c0",
"className": "outil_a_maj_grave",
"replaceWith": "À",
"display": true,
"lang": [
"fr",
"eo",
"cpf"
]
},
{
"id": "E_aigu",
"name": "Ins\u00e9rer un \u00c9",
"className": "outil_e_maj_aigu",
"replaceWith": "É",
"display": true,
"lang": [
"fr",
"eo",
"cpf"
]
},
{
"id": "E_grave",
"name": "Ins\u00e9rer un \u00c8",
"className": "outil_e_maj_grave",
"replaceWith": "È",
"display": true,
"lang": [
"fr",
"eo",
"cpf"
]
},
{
"id": "aelig",
"name": "Ins\u00e9rer un \u00e6",
"className": "outil_aelig",
"replaceWith": "æ",
"display": true,
"lang": [
"fr",
"eo",
"cpf"
]
},
{
"id": "AElig",
"name": "Ins\u00e9rer un \u00c6",
"className": "outil_aelig_maj",
"replaceWith": "Æ",
"display": true,
"lang": [
"fr",
"eo",
"cpf"
]
},
{
"id": "oe",
"name": "Ins\u00e9rer un \u0153",
"className": "outil_oe",
"replaceWith": "œ",
"display": true,
"lang": [
"fr"
]
},
{
"id": "OE",
"name": "Ins\u00e9rer un \u0152",
"className": "outil_oe_maj",
"replaceWith": "Œ",
"display": true,
"lang": [
"fr"
]
},
{
"id": "Ccedil",
"name": "Ins\u00e9rer un \u00c7",
"className": "outil_ccedil_maj",
"replaceWith": "Ç",
"display": true,
"lang": [
"fr",
"eo",
"cpf"
]
},
{
"id": "uppercase",
"name": "Passer en majuscules",
"className": "outil_uppercase",
"replaceWith": function(markitup) { return markitup.selection.toUpperCase() },
"display": true,
"lang": [
"fr",
"en"
]
},
{
"id": "lowercase",
"name": "Passer en minuscules",
"className": "outil_lowercase",
"replaceWith": function(markitup) { return markitup.selection.toLowerCase() },
"display": true,
"lang": [
"fr",
"en"
]
}
]
},
{
"name": "Ins\u00e9rer un code informatique (`)",
"className": "outil_code separateur separateur_apres sepCode",
"openWith": "`",
"closeWith": "`",
"dropMenu": [
{
"id": "cadre",
"name": "Ins\u00e9rer un code pr\u00e9format\u00e9 (```)",
"className": "outil_cadre",
"openWith": "```\n",
"closeWith": "\n```",
"display": true
}
]
}
]
}
// remplace ou cree -* ou -** ou -# ou -##
function outil_liste(h, c) {
if ((s = h.selection) && (r = s.match(/^-([*#]+) (.*)$/))) {
r[1] = r[1].replace(/[#*]/g, c);
s = '-'+r[1]+' '+r[2];
} else {
s = '-' + c + ' '+s;
}
return s;
}
// indente des -* ou -#
function outil_indenter(h) {
if (s = h.selection) {
if (s.substr(0,2)=='-*') {
s = '-**' + s.substr(2);
} else if (s.substr(0,2)=='-#') {
s = '-##' + s.substr(2);
} else {
s = '-* ' + s;
}
}
return s;
}
// desindente des -* ou -** ou -# ou -##
function outil_desindenter(h){
if (s = h.selection) {
if (s.substr(0,3)=='-**') {
s = '-*' + s.substr(3);
} else if (s.substr(0,3)=='-* ') {
s = s.substr(3);
} else if (s.substr(0,3)=='-##') {
s = '-#' + s.substr(3);
} else if (s.substr(0,3)=='-# ') {
s = s.substr(3);
}
}
return s;
}
// ajouter un espace avant, apres un {qqc} pour ne pas que
// gras {{}} suivi de italique {} donnent {{{}}}, mais { {{}} }
function espace_si_accolade(h, openWith, closeWith){
if (s = h.selection) {
// accolade dans la selection
if (s.charAt(0)=='{') {
return openWith + ' ' + s + ' ' + closeWith;
}
// accolade avant la selection
else if (c = h.textarea.selectionStart) {
if (h.textarea.value.charAt(c-1) == '{') {
return ' ' + openWith + s + closeWith + ' ';
}
}
}
return openWith + s + closeWith;
}
barre_outils_forum = {
"nameSpace": "forum",
"previewAutoRefresh": false,
"onEnter": {
"keepDefault": false,
"selectionType": "return",
"replaceWith": "\n"
},
"onShiftEnter": {
"keepDefault": false,
"replaceWith": "\n_ "
},
"onCtrlEnter": {
"keepDefault": false,
"replaceWith": "\n\n"
},
"markupSet": [
{
"name": "Mettre en {{gras}}",
"key": "B",
"className": "outil_bold",
"replaceWith": function(h){ return espace_si_accolade(h, '{{', '}}');},
"selectionType": "word"
},
{
"name": "Mettre en {italique}",
"key": "I",
"className": "outil_italic",
"replaceWith": function(h){ return espace_si_accolade(h, '{', '}');},
"selectionType": "word"
},
{
"name": "Colorer le texte",
"className": "cs_couleur_texte",
"replaceWith": "",
"dropMenu": [
{
"id": "couleur_texte_noir",
"name": "Texte noir",
"className": "couleur_texte_noir",
"openWith": "[noir]",
"closeWith": "[\/noir]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_rouge",
"name": "Texte rouge",
"className": "couleur_texte_rouge",
"openWith": "[rouge]",
"closeWith": "[\/rouge]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_marron",
"name": "Texte marron",
"className": "couleur_texte_marron",
"openWith": "[marron]",
"closeWith": "[\/marron]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_vert",
"name": "Texte vert",
"className": "couleur_texte_vert",
"openWith": "[vert]",
"closeWith": "[\/vert]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_vert_olive",
"name": "Texte vert olive",
"className": "couleur_texte_vert_olive",
"openWith": "[vert olive]",
"closeWith": "[\/vert olive]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_bleu_marine",
"name": "Texte bleu marine",
"className": "couleur_texte_bleu_marine",
"openWith": "[bleu marine]",
"closeWith": "[\/bleu marine]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_violet",
"name": "Texte violet",
"className": "couleur_texte_violet",
"openWith": "[violet]",
"closeWith": "[\/violet]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_gris",
"name": "Texte gris",
"className": "couleur_texte_gris",
"openWith": "[gris]",
"closeWith": "[\/gris]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_argent",
"name": "Texte argent",
"className": "couleur_texte_argent",
"openWith": "[argent]",
"closeWith": "[\/argent]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_vert_clair",
"name": "Texte vert clair",
"className": "couleur_texte_vert_clair",
"openWith": "[vert clair]",
"closeWith": "[\/vert clair]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_bleu",
"name": "Texte bleu",
"className": "couleur_texte_bleu",
"openWith": "[bleu]",
"closeWith": "[\/bleu]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_fuchia",
"name": "Texte fuchia",
"className": "couleur_texte_fuchia",
"openWith": "[fuchia]",
"closeWith": "[\/fuchia]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_bleu_clair",
"name": "Texte bleu clair",
"className": "couleur_texte_bleu_clair",
"openWith": "[bleu clair]",
"closeWith": "[\/bleu clair]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_blanc",
"name": "Texte blanc",
"className": "couleur_texte_blanc",
"openWith": "[blanc]",
"closeWith": "[\/blanc]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_bleu_azur",
"name": "Texte bleu azur",
"className": "couleur_texte_bleu_azur",
"openWith": "[bleu azur]",
"closeWith": "[\/bleu azur]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_beige",
"name": "Texte beige",
"className": "couleur_texte_beige",
"openWith": "[beige]",
"closeWith": "[\/beige]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_brun",
"name": "Texte brun",
"className": "couleur_texte_brun",
"openWith": "[brun]",
"closeWith": "[\/brun]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_bleu_violet",
"name": "Texte bleu violet",
"className": "couleur_texte_bleu_violet",
"openWith": "[bleu violet]",
"closeWith": "[\/bleu violet]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_brun_clair",
"name": "Texte brun clair",
"className": "couleur_texte_brun_clair",
"openWith": "[brun clair]",
"closeWith": "[\/brun clair]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_rose_clair",
"name": "Texte rose clair",
"className": "couleur_texte_rose_clair",
"openWith": "[rose clair]",
"closeWith": "[\/rose clair]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_vert_fonce",
"name": "Texte vert fonce",
"className": "couleur_texte_vert_fonce",
"openWith": "[vert fonce]",
"closeWith": "[\/vert fonce]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_orange_fonce",
"name": "Texte orange fonce",
"className": "couleur_texte_orange_fonce",
"openWith": "[orange fonce]",
"closeWith": "[\/orange fonce]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_mauve_fonce",
"name": "Texte mauve fonce",
"className": "couleur_texte_mauve_fonce",
"openWith": "[mauve fonce]",
"closeWith": "[\/mauve fonce]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_bleu_ciel",
"name": "Texte bleu ciel",
"className": "couleur_texte_bleu_ciel",
"openWith": "[bleu ciel]",
"closeWith": "[\/bleu ciel]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_or",
"name": "Texte or",
"className": "couleur_texte_or",
"openWith": "[or]",
"closeWith": "[\/or]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_ivoire",
"name": "Texte ivoire",
"className": "couleur_texte_ivoire",
"openWith": "[ivoire]",
"closeWith": "[\/ivoire]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_orange",
"name": "Texte orange",
"className": "couleur_texte_orange",
"openWith": "[orange]",
"closeWith": "[\/orange]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_lavande",
"name": "Texte lavande",
"className": "couleur_texte_lavande",
"openWith": "[lavande]",
"closeWith": "[\/lavande]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_rose",
"name": "Texte rose",
"className": "couleur_texte_rose",
"openWith": "[rose]",
"closeWith": "[\/rose]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_prune",
"name": "Texte prune",
"className": "couleur_texte_prune",
"openWith": "[prune]",
"closeWith": "[\/prune]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_saumon",
"name": "Texte saumon",
"className": "couleur_texte_saumon",
"openWith": "[saumon]",
"closeWith": "[\/saumon]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_neige",
"name": "Texte neige",
"className": "couleur_texte_neige",
"openWith": "[neige]",
"closeWith": "[\/neige]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_turquoise",
"name": "Texte turquoise",
"className": "couleur_texte_turquoise",
"openWith": "[turquoise]",
"closeWith": "[\/turquoise]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_jaune_paille",
"name": "Texte jaune paille",
"className": "couleur_texte_jaune_paille",
"openWith": "[jaune paille]",
"closeWith": "[\/jaune paille]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_texte_jaune",
"name": "Texte jaune",
"className": "couleur_texte_jaune",
"openWith": "[jaune]",
"closeWith": "[\/jaune]",
"selectionType": "word",
"display": true
}
]
},
{
"name": "Colorer le fond",
"className": "cs_couleur_fond separateur_avant",
"replaceWith": "",
"dropMenu": [
{
"id": "couleur_fond_noir",
"name": "Fond noir",
"className": "couleur_fond_noir",
"openWith": "[fond noir]",
"closeWith": "[\/fond noir]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_rouge",
"name": "Fond rouge",
"className": "couleur_fond_rouge",
"openWith": "[fond rouge]",
"closeWith": "[\/fond rouge]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_marron",
"name": "Fond marron",
"className": "couleur_fond_marron",
"openWith": "[fond marron]",
"closeWith": "[\/fond marron]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_vert",
"name": "Fond vert",
"className": "couleur_fond_vert",
"openWith": "[fond vert]",
"closeWith": "[\/fond vert]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_vert_olive",
"name": "Fond vert olive",
"className": "couleur_fond_vert_olive",
"openWith": "[fond vert olive]",
"closeWith": "[\/fond vert olive]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_bleu_marine",
"name": "Fond bleu marine",
"className": "couleur_fond_bleu_marine",
"openWith": "[fond bleu marine]",
"closeWith": "[\/fond bleu marine]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_violet",
"name": "Fond violet",
"className": "couleur_fond_violet",
"openWith": "[fond violet]",
"closeWith": "[\/fond violet]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_gris",
"name": "Fond gris",
"className": "couleur_fond_gris",
"openWith": "[fond gris]",
"closeWith": "[\/fond gris]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_argent",
"name": "Fond argent",
"className": "couleur_fond_argent",
"openWith": "[fond argent]",
"closeWith": "[\/fond argent]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_vert_clair",
"name": "Fond vert clair",
"className": "couleur_fond_vert_clair",
"openWith": "[fond vert clair]",
"closeWith": "[\/fond vert clair]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_bleu",
"name": "Fond bleu",
"className": "couleur_fond_bleu",
"openWith": "[fond bleu]",
"closeWith": "[\/fond bleu]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_fuchia",
"name": "Fond fuchia",
"className": "couleur_fond_fuchia",
"openWith": "[fond fuchia]",
"closeWith": "[\/fond fuchia]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_bleu_clair",
"name": "Fond bleu clair",
"className": "couleur_fond_bleu_clair",
"openWith": "[fond bleu clair]",
"closeWith": "[\/fond bleu clair]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_blanc",
"name": "Fond blanc",
"className": "couleur_fond_blanc",
"openWith": "[fond blanc]",
"closeWith": "[\/fond blanc]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_bleu_azur",
"name": "Fond bleu azur",
"className": "couleur_fond_bleu_azur",
"openWith": "[fond bleu azur]",
"closeWith": "[\/fond bleu azur]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_beige",
"name": "Fond beige",
"className": "couleur_fond_beige",
"openWith": "[fond beige]",
"closeWith": "[\/fond beige]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_brun",
"name": "Fond brun",
"className": "couleur_fond_brun",
"openWith": "[fond brun]",
"closeWith": "[\/fond brun]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_bleu_violet",
"name": "Fond bleu violet",
"className": "couleur_fond_bleu_violet",
"openWith": "[fond bleu violet]",
"closeWith": "[\/fond bleu violet]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_brun_clair",
"name": "Fond brun clair",
"className": "couleur_fond_brun_clair",
"openWith": "[fond brun clair]",
"closeWith": "[\/fond brun clair]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_rose_clair",
"name": "Fond rose clair",
"className": "couleur_fond_rose_clair",
"openWith": "[fond rose clair]",
"closeWith": "[\/fond rose clair]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_vert_fonce",
"name": "Fond vert fonce",
"className": "couleur_fond_vert_fonce",
"openWith": "[fond vert fonce]",
"closeWith": "[\/fond vert fonce]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_orange_fonce",
"name": "Fond orange fonce",
"className": "couleur_fond_orange_fonce",
"openWith": "[fond orange fonce]",
"closeWith": "[\/fond orange fonce]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_mauve_fonce",
"name": "Fond mauve fonce",
"className": "couleur_fond_mauve_fonce",
"openWith": "[fond mauve fonce]",
"closeWith": "[\/fond mauve fonce]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_bleu_ciel",
"name": "Fond bleu ciel",
"className": "couleur_fond_bleu_ciel",
"openWith": "[fond bleu ciel]",
"closeWith": "[\/fond bleu ciel]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_or",
"name": "Fond or",
"className": "couleur_fond_or",
"openWith": "[fond or]",
"closeWith": "[\/fond or]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_ivoire",
"name": "Fond ivoire",
"className": "couleur_fond_ivoire",
"openWith": "[fond ivoire]",
"closeWith": "[\/fond ivoire]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_orange",
"name": "Fond orange",
"className": "couleur_fond_orange",
"openWith": "[fond orange]",
"closeWith": "[\/fond orange]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_lavande",
"name": "Fond lavande",
"className": "couleur_fond_lavande",
"openWith": "[fond lavande]",
"closeWith": "[\/fond lavande]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_rose",
"name": "Fond rose",
"className": "couleur_fond_rose",
"openWith": "[fond rose]",
"closeWith": "[\/fond rose]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_prune",
"name": "Fond prune",
"className": "couleur_fond_prune",
"openWith": "[fond prune]",
"closeWith": "[\/fond prune]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_saumon",
"name": "Fond saumon",
"className": "couleur_fond_saumon",
"openWith": "[fond saumon]",
"closeWith": "[\/fond saumon]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_neige",
"name": "Fond neige",
"className": "couleur_fond_neige",
"openWith": "[fond neige]",
"closeWith": "[\/fond neige]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_turquoise",
"name": "Fond turquoise",
"className": "couleur_fond_turquoise",
"openWith": "[fond turquoise]",
"closeWith": "[\/fond turquoise]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_jaune_paille",
"name": "Fond jaune paille",
"className": "couleur_fond_jaune_paille",
"openWith": "[fond jaune paille]",
"closeWith": "[\/fond jaune paille]",
"selectionType": "word",
"display": true
},
{
"id": "couleur_fond_jaune",
"name": "Fond jaune",
"className": "couleur_fond_jaune",
"openWith": "[fond jaune]",
"closeWith": "[\/fond jaune]",
"selectionType": "word",
"display": true
}
]
},
{
"name": "Transformer en [lien hypertexte->http:\/\/...]",
"key": "L",
"className": "outil_link separateur separateur_apres sepLink separateur_avant",
"openWith": "[",
"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.]!]]"
},
{
"name": "<quote>Citer un message<\/quote>",
"key": "Q",
"className": "outil_quote separateur separateur_apres sepGuillemets",
"openWith": "\n<quote>",
"closeWith": "<\/quote>\n",
"selectionType": "word"
},
{
"name": "Entourer de \u00ab\u00a0guillemets\u00a0\u00bb",
"className": "outil_guillemets",
"openWith": "«",
"closeWith": "»",
"lang": [
"fr",
"eo",
"cpf",
"ar",
"es"
],
"selectionType": "word",
"dropMenu": [
{
"id": "guillemets_simples",
"name": "Entourer de \u201cguillemets de second niveau\u201d",
"className": "outil_guillemets_simples",
"openWith": "“",
"closeWith": "”",
"display": true,
"lang": [
"fr",
"eo",
"cpf",
"ar",
"es"
],
"selectionType": "word"
}
]
},
{
"name": "Entourer de \u00ab\u00a0guillemets\u00a0\u00bb",
"className": "outil_guillemets_de",
"openWith": "„",
"closeWith": "“",
"lang": [
"bg",
"de",
"pl",
"hr",
"src"
],
"selectionType": "word",
"dropMenu": [
{
"id": "guillemets_de_simples",
"name": "Entourer de \u201cguillemets de second niveau\u201d",
"className": "outil_guillemets_de_simples",
"openWith": "‚",
"closeWith": "‘",
"display": true,
"lang": [
"bg",
"de",
"pl",
"hr",
"src"
],
"selectionType": "word"
}
]
},
{
"name": "Entourer de \u00ab\u00a0guillemets\u00a0\u00bb",
"className": "outil_guillemets_simples separateur_avant",
"openWith": "“",
"closeWith": "”",
"lang_not": [
"fr",
"eo",
"cpf",
"ar",
"es",
"bg",
"de",
"pl",
"hr",
"src"
],
"selectionType": "word",
"dropMenu": [
{
"id": "guillemets_autres_simples",
"name": "Entourer de \u201cguillemets de second niveau\u201d",
"className": "outil_guillemets_uniques",
"openWith": "‘",
"closeWith": "’",
"display": true,
"lang_not": [
"fr",
"eo",
"cpf",
"ar",
"es",
"bg",
"de",
"pl",
"hr",
"src"
],
"selectionType": "word"
}
]
}
]
}
// remplace ou cree -* ou -** ou -# ou -##
function outil_liste(h, c) {
if ((s = h.selection) && (r = s.match(/^-([*#]+) (.*)$/))) {
r[1] = r[1].replace(/[#*]/g, c);
s = '-'+r[1]+' '+r[2];
} else {
s = '-' + c + ' '+s;
}
return s;
}
// indente des -* ou -#
function outil_indenter(h) {
if (s = h.selection) {
if (s.substr(0,2)=='-*') {
s = '-**' + s.substr(2);
} else if (s.substr(0,2)=='-#') {
s = '-##' + s.substr(2);
} else {
s = '-* ' + s;
}
}
return s;
}
// desindente des -* ou -** ou -# ou -##
function outil_desindenter(h){
if (s = h.selection) {
if (s.substr(0,3)=='-**') {
s = '-*' + s.substr(3);
} else if (s.substr(0,3)=='-* ') {
s = s.substr(3);
} else if (s.substr(0,3)=='-##') {
s = '-#' + s.substr(3);
} else if (s.substr(0,3)=='-# ') {
s = s.substr(3);
}
}
return s;
}
// ajouter un espace avant, apres un {qqc} pour ne pas que
// gras {{}} suivi de italique {} donnent {{{}}}, mais { {{}} }
function espace_si_accolade(h, openWith, closeWith){
if (s = h.selection) {
// accolade dans la selection
if (s.charAt(0)=='{') {
return openWith + ' ' + s + ' ' + closeWith;
}
// accolade avant la selection
else if (c = h.textarea.selectionStart) {
if (h.textarea.value.charAt(c-1) == '{') {
return ' ' + openWith + s + closeWith + ' ';
}
}
}
return openWith + s + closeWith;
}
barre_outils_vide = {
"nameSpace": "vide",
"previewAutoRefresh": false,
"markupSet": []
}
;(function($){
// 2 fonctions pour appeler le porte plume reutilisables pour d'autres plugins
// on envoie dedans la selection jquery qui doit etre effectuee
// ce qui evite des appels direct a markitup, aucazou on change de lib un jour
$.fn.barre_outils = function(nom, settings) {
options = {
lang:'fr'
};
$.extend(options, settings);
return $(this)
.not('.markItUpEditor, .no_barre')
.markItUp(eval('barre_outils_' + nom), {lang:options.lang})
.trigger('markItUpEditor.loaded')
.parent().find('.markItUpButton a').attr('tabindex', -1) // ne pas tabuler les boutons
.end();
};
$.fn.barre_previsualisation = function(settings) {
options = {
previewParserPath:"index.php?action=porte_plume_previsu", // ici une url relative pour prive/public
textEditer:"Modifier",
textVoir:"Voir"
};
$.extend(options, settings);
return $(this)
.not('.pp_previsualisation, .no_previsualisation')
.previsu_spip(options)
.trigger('markItUpPreview.loaded')
.parent().find('.markItUpTabs a').attr('tabindex', -1) // ne pas tabuler les onglets
.end();
};
$(window).on('load', function(){
// ajoute les barres d'outils markitup
function barrebouilles(){
// fonction generique appliquee aux classes CSS :
// inserer_barre_forum, inserer_barre_edition, inserer_previsualisation
$('.formulaire_spip textarea.inserer_barre_forum').barre_outils('forum');
$('.formulaire_spip textarea.inserer_barre_edition').barre_outils('edition');
$('.formulaire_spip textarea.inserer_previsualisation').barre_previsualisation();
// fonction specifique aux formulaires de SPIP :
// barre de forum
$('textarea.textarea_forum').barre_outils('forum');
$('.formulaire_forum textarea[name=texte]').barre_outils('forum');
// barre d'edition et onglets de previsualisation
$('.formulaire_spip textarea[name=texte]')
.barre_outils('edition').end()
.barre_previsualisation();
}
barrebouilles();
onAjaxLoad(barrebouilles);
});
})(jQuery);