ajouterApres('bold',array(params)); // $barre->ajouterAvant('bold',array(params)); // // $bold = $barre->get('bold'); // $bold['id'] = 'bold2'; // $barre->ajouterApres('italic',$bold); $barres = pipeline('porte_plume_barre_pre_charger', $barres); // 3 chargement // permet de cacher ou afficher certains boutons au besoin // exemples : // $barre = &$flux['spip']; // $barre->afficher('bold'); // $barre->cacher('bold'); // // $barre->cacherTout(); // $barre->afficher(array('bold','italic','header1')); $barres = pipeline('porte_plume_barre_charger', $barres); // 4 on cree les jsons $json = ""; foreach($barres as $set=>$barre) { $json .= $barre->creer_json(); } return $json; } ?>