forked from spip/porte_plume
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
892 B
50 lines
892 B
<?php |
|
/** |
|
* Déclaration de la barre d'outil de forum de SPIP |
|
* |
|
* @plugin Porte Plume pour SPIP |
|
* @license GPL |
|
* @package SPIP\PortePlume\BarreOutils |
|
*/ |
|
if (!defined('_ECRIRE_INC_VERSION')) { |
|
return; |
|
} |
|
|
|
|
|
/** |
|
* Définition de la barre 'forum' pour markitup |
|
* |
|
* @return Barre_outils La barre d'outil |
|
*/ |
|
function barre_outils_forum() { |
|
// on modifie simplement la barre d'edition |
|
$edition = charger_fonction('edition', 'barre_outils'); |
|
$barre = $edition(); |
|
$barre->nameSpace = 'forum'; |
|
$barre->cacherTout(); |
|
$barre->afficher(array( |
|
'bold', |
|
'italic', |
|
'sepLink', |
|
'link', |
|
'sepGuillemets', |
|
'quote', |
|
'sepCaracteres', |
|
'guillemets', |
|
'guillemets_simples', |
|
'guillemets_de', |
|
'guillemets_de_simples', |
|
'guillemets_autres', |
|
'guillemets_autres_simples', |
|
'A_grave', |
|
'E_aigu', |
|
'E_grave', |
|
'aelig', |
|
'AElig', |
|
'oe', |
|
'OE', |
|
'Ccedil', |
|
)); |
|
|
|
return $barre; |
|
}
|
|
|