Porte Plume : documentation technique - commentaires Porte Plume : documentation technique 2019-10-16T16:22:23Z https://contrib.spip.net/Porte-Plume-documentation-technique#comment502700 2019-10-16T16:22:23Z <p>Hello<br class="autobr"> J'ai un petit souci : j'ai pu sans souci faire apparaître un bouton pour un plugin dans la barre principale avec</p> <div class="precode"><pre class="spip_code spip_code_block language-php" dir="ltr" style="text-align:left;" data-language="php"><code>$barre->ajouterAvant('guillemets', array(</code></pre></div> <p>mais je n'arrive pas à l'insérer dans un sous-menu avec par exemple</p> <div class="precode"><pre class="spip_code spip_code_block language-php" dir="ltr" style="text-align:left;" data-language="php"><code>$barre->ajouterApres('barre_code', array(</code></pre></div> <p>le bouton barre_code étant présent si le plugin Enluminures typographiques est activé.</p> Porte Plume : documentation technique 2019-02-14T11:44:55Z https://contrib.spip.net/Porte-Plume-documentation-technique#comment500032 2019-02-14T11:44:55Z <p>Un ticket mal placé sur programmer.spip.net demande :</p> <p>Il est mentionné des noms de pipeline erronés me semble-t'il :<br class="autobr"> <a href="https://contrib.spip.net/Porte-Plume-documentation-technique#Completer-une-barre-d-outil" class="spip_url auto" rel="nofollow">https://contrib.spip.net/Porte-Plume-documentation-technique#Completer-une-barre-d-outil</a><br class="autobr"> il y est écrit :<br class="autobr"> <code class="spip_code spip_code_inline" dir="ltr">porte_plume_barre_outils_pre_charger</code> sert à ajouter des boutons à une barre.<br class="autobr"> <code class="spip_code spip_code_inline" dir="ltr">porte_plume_barre_outils_charger</code> sert à afficher ou masquer certains boutons</p> <p>Mais comme le dit quelqu'un en 2016 dans les commentaires<br class="autobr"> <a href="https://contrib.spip.net/Porte-Plume-documentation-technique#comment485720" class="spip_url auto" rel="nofollow">https://contrib.spip.net/Porte-Plume-documentation-technique#comment485720</a></p> <p>Ce serait plutôt <code class="spip_code spip_code_inline" dir="ltr">porte_plume_barre_pre_charger</code> et <code class="spip_code spip_code_inline" dir="ltr">porte_plume_barre_charger</code></p> Porte Plume : documentation technique 2019-01-02T15:20:06Z https://contrib.spip.net/Porte-Plume-documentation-technique#comment499263 2019-01-02T15:20:06Z <p>Autre piste a compléter : un bouton offrant les possibilités d'insérer des liens internes « choisis », typiquement le lien correspondant à un titre d'article, ou retrouver rapidement les liens d'auteurs à insérer<small class="fine d-inline"> </small>!</p> Porte Plume : documentation technique 2016-08-05T09:54:39Z https://contrib.spip.net/Porte-Plume-documentation-technique#comment488478 2016-08-05T09:54:39Z <p>C'est bon j'ai trouvé. <br class="autobr"> Merci beaucoup pour le solution.</p> Porte Plume : documentation technique 2016-08-04T18:22:20Z https://contrib.spip.net/Porte-Plume-documentation-technique#comment488470 2016-08-04T18:22:20Z <p>Bon pour un ignare en php comme moi, ce n'est pas si simple.<br class="autobr"> Voici le code actuel que j'utilise pour surcharger la barre d'édition des articles :</p> <div class="precode"><pre class="spip_code spip_code_block" dir="ltr" style="text-align:left;"><code>if (!defined("_ECRIRE_INC_VERSION")) return; function escal_porte_plume_barre_pre_charger($barres){ $barre = &$barres['edition']; $module_barre = "barre_outils"; if (intval($GLOBALS['spip_version_branche'])>2) $module_barre = "barreoutils"; // Ajouts Escal $barre->ajouterApres ... )); return $barres; }</code></pre></div> <p>Que dois-je changer<small class="fine d-inline"> </small>?</p> Porte Plume : documentation technique 2016-07-18T17:47:19Z https://contrib.spip.net/Porte-Plume-documentation-technique#comment488304 2016-07-18T17:47:19Z <p>Cool<small class="fine d-inline"> </small>! <br class="autobr"> Je regarde ça de près dès que je rentre de vacances...<br class="autobr"> Merci</p> Porte Plume : documentation technique 2016-07-18T15:43:58Z https://contrib.spip.net/Porte-Plume-documentation-technique#comment488302 2016-07-18T15:43:58Z <p>Hello RealET,</p> <p>Un peut tard mais, regarde le commentaire que <a href="http://contrib.spip.net/Porte-Plume-documentation-technique#forum488301" class="spip_out" rel='nofollow external'>je viens de faire a JC</a> c'est je pense identique à ta question...</p> <p>Bonne journée<br class="autobr"> Mist. GraphX</p> Porte Plume : documentation technique 2016-07-18T15:38:44Z https://contrib.spip.net/Porte-Plume-documentation-technique#comment488301 2016-07-18T15:38:44Z <p>hello Jean Christophe ,</p> <p>en spécifiant la barre que tu souhaite surcharger au début de la déclaration de la pipeline</p> <div class="precode"><pre class="spip_code spip_code_block language-php" dir="ltr" style="text-align:left;" data-language="php"><code>prefix_porte_plume_barre_pre_charger($barres) { $barre_edition = &$barres['edition']; $barre_forum = &$barres['forum']; $barre_edition->set('header1', array( ... )); $barre_forum->set('header1', array( ... )); return $barres; }</code></pre></div> <p>bonne journée<br class="autobr"> Mist. GraphX</p> Porte Plume : documentation technique 2016-02-29T10:58:17Z https://contrib.spip.net/Porte-Plume-documentation-technique#comment486304 2016-02-29T10:58:17Z <p>Bonjour</p> <p>Comment surcharger la barre 'edition' ET la barre 'forum' de façon différente<small class="fine d-inline"> </small>?</p> Porte Plume : documentation technique 2016-02-05T09:37:37Z https://contrib.spip.net/Porte-Plume-documentation-technique#comment485720 2016-02-05T09:37:37Z <p>Juste pour signaler que dans la docc apparament les pipelines ne sont pas correct, il faut remplacer</p> <pre>porte_plume_barre_outils_pre_charger</pre> <p>par</p> <pre> porte_plume_barre_pre_charger au lieu de </pre> <p>et</p> <pre>porte_plume_porte_plume_lien_classe_vers_icone</pre> <p>par</p> <pre>porte_plume_lien_classe_vers_icone</pre> Porte Plume : documentation technique 2015-07-27T15:40:26Z https://contrib.spip.net/Porte-Plume-documentation-technique#comment483135 2015-07-27T15:40:26Z <p>Bonjour,</p> <p>Avec <a href="http://zone.spip.org/trac/spip-zone/changeset/91096" class="spip_url spip_out auto" rel="nofollow external">http://zone.spip.org/trac/spip-zone/changeset/91096</a> j'ai rajouté une entrée de menu dans le porte-plume pour afficher des frimousses.</p> <p>Mais cette entrée n'est pas visible dans le public pour les forums.</p> <p>Comment la rajouter<small class="fine d-inline"> </small>?</p> <p>Merci d'avance.</p> Porte Plume : documentation technique 2013-11-15T11:02:02Z https://contrib.spip.net/Porte-Plume-documentation-technique#comment472232 2013-11-15T11:02:02Z <p>il est necessaire de vider la cache apres la installation du plugin<small class="fine d-inline"> </small>!</p> <p>Is there a way to make this automatic during the installation of the plugin<small class="fine d-inline"> </small>?</p> Porte Plume : documentation technique 2013-11-01T17:53:52Z https://contrib.spip.net/Porte-Plume-documentation-technique#comment471981 2013-11-01T17:53:52Z <p>Bonjour<br class="autobr"> I have a problem with extensions of porte-plume with spip 2.1 and spip 3.<br class="autobr"> Can't see anymore extension buttons for « Bouton Changement de langue pour le Porte-Plume » and my plugin Porte Plume Equation.<br class="autobr"> Bouton pour spip code still is visible.<br class="autobr"> Nobody has the same problem<small class="fine d-inline"> </small>?<br class="autobr"> Any idea<small class="fine d-inline"> </small>?</p> Porte Plume : documentation technique 2012-06-08T18:06:22Z https://contrib.spip.net/Porte-Plume-documentation-technique#comment458223 2012-06-08T18:06:22Z <p>dear Marcimat<br class="autobr"> another question :<br class="autobr"> how to make a button of the bar just open a link (in new browser window)<small class="fine d-inline"> </small>?<br class="autobr"> (i need to open an help page)</p> Porte Plume : documentation technique 2012-06-08T14:50:22Z https://contrib.spip.net/Porte-Plume-documentation-technique#comment458217 2012-06-08T14:50:22Z <p>When editing equations is useful to have all buttons in front of you, without searching them in a submenu.</p> <p>So I would like to add a button to the edition bar that make show all the maths button (about to rows) under the edition bar itself and at the top of textarea, and hide it after clicking again the button, as in the original project<small class="fine d-inline"> </small>;<br class="autobr"> What do you think is the correct approach to achieve this<small class="fine d-inline"> </small>?</p> Porte Plume : documentation technique 2012-06-08T14:34:43Z https://contrib.spip.net/Porte-Plume-documentation-technique#comment458216 2012-06-08T14:34:43Z <p>You can't load 2 bars on 1 textarea. What do you expect in fact<small class="fine d-inline"> </small>?</p> Porte Plume : documentation technique 2012-06-08T14:31:38Z https://contrib.spip.net/Porte-Plume-documentation-technique#comment458213 2012-06-08T14:31:38Z <p>So,<br class="autobr"> I am actually able to charge my barre, modifing the class selector in javascript, but not toghether with porteplume :<br class="autobr"> <code class="spip_code spip_code_inline" dir="ltr">$('.formulaire_spip textarea').barre_outils('spip_super');</code><br class="autobr"> The problems seems to be that porte plume changes the class of the textarea, and so at the next call of <i>barre_outils</i> it cant find any <i>textarea.inserer_barre_edition</i><small class="fine d-inline"> </small>;<br class="autobr"> if i just call it on <i>textarea</i> it clear edition barre and append only my one<small class="fine d-inline"> </small>;</p> <p>So the question is how to write de javascript to just add the barre, i think.</p> Porte Plume : documentation technique 2012-06-08T14:01:58Z https://contrib.spip.net/Porte-Plume-documentation-technique#comment458209 2012-06-08T14:01:58Z <p>So, i have this script,</p> <div class="precode"><pre class="spip_code spip_code_block" dir="ltr" style="text-align:left;"><code>$(document).ready(function(){ function barreeq(){ $('.formulaire_spip textarea.inserer_barre_edition').barre_outils('spip_super'); } barreeq(); onAjaxLoad(barreeq); });</code></pre></div> <p>I charge it, i have the file spip_super.php in outils_barre/ but I cant get it visualized.</p> <p>The script is called correctly, as if i write <code class="spip_code spip_code_inline" dir="ltr">.barre_outils('foo');</code> i get a javascript error.</p> <p>Any suggestion<small class="fine d-inline"> </small>?</p> Porte Plume : documentation technique 2012-06-08T13:47:01Z https://contrib.spip.net/Porte-Plume-documentation-technique#comment458208 2012-06-08T13:47:01Z <p>You can use pipeline header_prive yes to run a js on all private page. (<a href="http://programmer.spip.org/header_prive" class="spip_url spip_out auto" rel="nofollow external">http://programmer.spip.org/header_prive</a>)</p> <p>There is no pipeline in porte_plume.</p> Porte Plume : documentation technique 2012-06-08T13:16:08Z https://contrib.spip.net/Porte-Plume-documentation-technique#comment458206 2012-06-08T13:16:08Z <p>thanks for your instant answer<small class="fine d-inline"> </small>!!!</p> <blockquote class="spip"> <p>And also on the little script that plug it on a textarea here</p> </blockquote> <p>yes, maybe this is the point : so I have to insert a jQuery function to append the barre to the textarea.</p> <p>But in the example it does for a new textarea in a new formularie.</p> <p>Have I to use pipeline insert_head to add this function to the saisie texarea in the espace privé<small class="fine d-inline"> </small>?<br class="autobr"> Or what<small class="fine d-inline"> </small>? <br class="autobr"> Isn't it a pipeline that do that for me in porte plume<small class="fine d-inline"> </small>?</p> Porte Plume : documentation technique 2012-06-08T11:39:25Z https://contrib.spip.net/Porte-Plume-documentation-technique#comment458203 2012-06-08T11:39:25Z <p>Hum bug in reply from plugin Comments... see my other message on this page :)</p> Porte Plume : documentation technique 2012-06-08T11:38:22Z https://contrib.spip.net/Porte-Plume-documentation-technique#comment458202 2012-06-08T11:38:22Z <p>Hi mmmx</p> <p>The best for you is to look at new plugin named «<small class="fine d-inline"> </small>Relecture<small class="fine d-inline"> </small>» witch do exactly what you want.<br class="autobr"> <a href="http://zone.spip.org/trac/spip-zone/browser/_plugins_/relecture/" class="spip_url spip_out auto" rel="nofollow external">http://zone.spip.org/trac/spip-zone/browser/_plugins_/relecture/</a></p> <p>Look at directory «<small class="fine d-inline"> </small>barre_outils<small class="fine d-inline"> </small>»<br class="autobr"> And also on the little script that plug it on a textarea here <br class="autobr"> <a href="http://zone.spip.org/trac/spip-zone/browser/_plugins_/relecture/formulaires/commenter_relecture.html#L4" class="spip_url spip_out auto" rel="nofollow external">http://zone.spip.org/trac/spip-zone/browser/_plugins_/relecture/formulaires/commenter_relecture.html#L4</a></p> <p>Hope that helps you.</p> Porte Plume : documentation technique 2012-06-08T11:26:45Z https://contrib.spip.net/Porte-Plume-documentation-technique#comment458200 2012-06-08T11:26:45Z <p>Dear marcimat</p> <p>I would like to understand how to add a barre to porteplume</p> <p>I can add a button to the barre edition, but I would like to add a whole barre pour le project <a href="http://www.spip-contrib.net/Plugin-SPIP-Equation" class="spip_out" rel='nofollow external'>spip equation</a>)</p> <p>I tried adding the pipeline plume_barre_declarer as you stated <a href="http://www.mail-archive.com/spip-zone@rezo.net/msg10840.html" class="spip_out" rel='nofollow external'>here</a> but I cant make it appear.</p> <p>Could you please tell me step by step the procedure to follow<small class="fine d-inline"> </small>?<br class="autobr"> Can't write french but I can read it so you can answer me in french. thanks</p>