Fork me on GitHub

Rapport de message :*
 

Re: Probleme affichage tableau tinymce4 news

Titre du sujet : Re: Probleme affichage tableau tinymce4 news
par garrath sur 23/05/2016 13:03:36

je connais pas tinymce4 etc...
et j'ai pas regarder le code...

j'ai juste regarder ton lien.

Alors comme dit par Alain au desus, il y a tout une palanquée de <br> qui se sont mis devant ton tableau, c'est pourquoi ton tableau est en bas de la page.
<article role="article">         <h2 class="news-no-image" role="heading"><a href="http://s624469831.onlinehome.fr/modules/news/index.php?storytopic=3" maritimes="" alpes="" -="" titls="06">06 Alpes Maritimes</a>: Gros Riou</h2>                 <em><strong>Publié par: </strong><a href="http://s624469831.onlinehome.fr/userinfo.php?uid=1">Benoit</a>le 09/05/2016 03:00:00</em>             <strong class="pull-right hit-counter">28 lectures</strong>             <div><br><h1><img src="http://s624469831.onlinehome.fr/uploads/filemanager/templates/template-video/movies.png" alt="movies">&nbsp;Gros Riou</h1><br><hr><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><table cellspacing="5" cellpadding="5" border="1" style="width: 596px;"><tbody><tr style="height: 19px;"><th style="height: 31.9688px; width: 94px;"><img width="50" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/village.png" alt="Commune"></th><td style="height: 31.9688px; width: 99px;" class="odd">Cuébris</td><td style="height: 674.969px; width: 349px; vertical-align: top;" rowspan="14" class="even"><br><p><strong><span>Topographie&nbsp;:</span></strong><br>mettre le texte ici</p><br><p><strong><span>&nbsp;</span></strong></p><br><p></p><br><p><strong><span>Photos&nbsp;:<br></span></strong>Retrouvez toutes nos photos de ce Canyon&nbsp;<a href="http://s624469831.onlinehome.fr/modules/extgallery/public-album.php?id=8">ici</a></p><br><p><strong><span>&nbsp;</span></strong></p><br><strong><span>Vidéos&nbsp;:<br></span></strong>Retrouvez toutes nos vidéos de ce canyon&nbsp;<a href="http://s624469831.onlinehome.fr/modules/xoopstube/viewcat.php?cid=4">ici</a><br><br><p></p><br><strong><span><br>Liens&nbsp;:<br></span></strong><a target="_blank" href="http://www.descente-canyon.com/canyoning/canyon/2740">Descente Canyon</a></td></tr><tr style="height: 52px;"><th style="height: 52px; width: 94px;"><img width="50" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/carte.png" alt="Carte"></th><td style="height: 52px; width: 99px;" class="odd">3642.ET</td></tr><tr style="height: 52px;"><th style="height: 52px; width: 94px;"><img width="50" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/altitude.png" alt="Altitude"></th><td style="height: 52px; width: 99px;" class="odd">606 m</td></tr><tr style="height: 52px;"><th style="height: 52px; width: 94px;"><img width="50" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/longueur.png" alt="longueur"></th><td style="height: 52px; width: 99px;" class="odd">2800 m</td></tr><tr style="height: 52px;"><th style="height: 52px; width: 94px;"><img width="50" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/denivele.png" alt="denivele"></th><td style="height: 52px; width: 99px;" class="odd">266 m</td></tr><tr style="height: 52px;"><th style="height: 52px; width: 94px;"><img width="50" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/cascademax.png" alt="cascade max"></th><td style="height: 52px; width: 99px;" class="odd">25 m</td></tr><tr style="height: 52px;"><th style="height: 52px; width: 94px;"><img width="50" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/marcheapproche.png" alt="temps approche"></th><td style="height: 52px; width: 99px;" class="odd">0h45</td></tr><tr style="height: 52px;"><th style="height: 52px; width: 94px;"><img width="50" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/tempsdescente.png" alt="temps parcours"></th><td style="height: 52px; width: 99px;" class="odd">4h30</td></tr><tr style="height: 52px;"><th style="height: 52px; width: 94px;"><img width="50" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/marcheretour.png" alt="temps retour"></th><td style="height: 52px; width: 99px;" class="odd">0h20</td></tr><tr style="height: 52px;"><th style="height: 52px; width: 94px;"><img width="50" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/corde.png" alt="corde min"></th><td style="height: 52px; width: 99px;" class="odd">60 m</td></tr><tr style="height: 52px;"><th style="height: 52px; width: 94px;"><img width="50" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/quotation.png" alt="quotation"></th><td style="height: 52px; width: 99px;" class="odd">V4.A3.III</td></tr><tr style="height: 52px;"><th style="height: 52px; width: 94px;"><img width="50" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/navette.png" alt="navette"></th><td style="height: 52px; width: 99px;" class="odd">Oui</td></tr><tr style="height: 52px;"><th style="height: 52px; width: 94px;"><img width="50" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/roche.png" alt="calcaire"></th><td style="height: 52px; width: 99px;" class="odd">Calcaire</td></tr></tbody></table><br></div>     </article>


On voit ces br en utilisant soit F12 sur IE ou Edge soit Firebug sur FF.
Par contre c'est rigolo, car si on demande a afficher la source de la page, on n'a pas la même chose...
<article role="article">         <h2 role="heading" class="news-no-image"><a titls=06 Alpes Maritimes href='http://s624469831.onlinehome.fr/modules/news/index.php?storytopic=3'>06 Alpes Maritimes</a>: Gros Riou</h2>                 <em><strong>Publié par: </strong><a href="http://s624469831.onlinehome.fr/userinfo.php?uid=1">Benoit</a>le 09/05/2016 03:00:00</em>             <strong class="pull-right hit-counter">28 lectures</strong>             <div><br /><h1><img alt="movies" src="http://s624469831.onlinehome.fr/uploads/filemanager/templates/template-video/movies.png" />&nbsp;Gros Riou</h1><br /><hr /><br /><table border="1" cellpadding="5" cellspacing="5" style="width: 596px;"><br /><tbody><br /><tr style="height: 19px;"><br /><th style="height: 31.9688px; width: 94px;"><img alt="Commune" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/village.png" width="50" /></th><br /><td class="odd" style="height: 31.9688px; width: 99px;">Cu&eacute;bris</td><br /><td class="even" rowspan="14" style="height: 674.969px; width: 349px; vertical-align: top;"><br /><p><strong><span>Topographie&nbsp;:</span></strong><br />mettre le texte ici</p><br /><p><strong><span>&nbsp;</span></strong></p><br /><p></p><br /><p><strong><span>Photos&nbsp;:<br /></span></strong>Retrouvez toutes nos photos de ce Canyon&nbsp;<a href="http://s624469831.onlinehome.fr/modules/extgallery/public-album.php?id=8">ici</a></p><br /><p><strong><span>&nbsp;</span></strong></p><br /><strong><span>Vid&eacute;os&nbsp;:<br /></span></strong>Retrouvez toutes nos vid&eacute;os de ce canyon&nbsp;<a href="http://s624469831.onlinehome.fr/modules/xoopstube/viewcat.php?cid=4">ici</a><br /><br /><p></p><br /><strong><span><br />Liens&nbsp;:<br /></span></strong><a href="http://www.descente-canyon.com/canyoning/canyon/2740" target="_blank">Descente Canyon</a></td><br /></tr><br /><tr style="height: 52px;"><br /><th style="height: 52px; width: 94px;"><img alt="Carte" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/carte.png" width="50" /></th><br /><td class="odd" style="height: 52px; width: 99px;">3642.ET</td><br /></tr><br /><tr style="height: 52px;"><br /><th style="height: 52px; width: 94px;"><img alt="Altitude" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/altitude.png" width="50" /></th><br /><td class="odd" style="height: 52px; width: 99px;">606 m</td><br /></tr><br /><tr style="height: 52px;"><br /><th style="height: 52px; width: 94px;"><img alt="longueur" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/longueur.png" width="50" /></th><br /><td class="odd" style="height: 52px; width: 99px;">2800 m</td><br /></tr><br /><tr style="height: 52px;"><br /><th style="height: 52px; width: 94px;"><img alt="denivele" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/denivele.png" width="50" /></th><br /><td class="odd" style="height: 52px; width: 99px;">266 m</td><br /></tr><br /><tr style="height: 52px;"><br /><th style="height: 52px; width: 94px;"><img alt="cascade max" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/cascademax.png" width="50" /></th><br /><td class="odd" style="height: 52px; width: 99px;">25 m</td><br /></tr><br /><tr style="height: 52px;"><br /><th style="height: 52px; width: 94px;"><img alt="temps approche" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/marcheapproche.png" width="50" /></th><br /><td class="odd" style="height: 52px; width: 99px;">0h45</td><br /></tr><br /><tr style="height: 52px;"><br /><th style="height: 52px; width: 94px;"><img alt="temps parcours" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/tempsdescente.png" width="50" /></th><br /><td class="odd" style="height: 52px; width: 99px;">4h30</td><br /></tr><br /><tr style="height: 52px;"><br /><th style="height: 52px; width: 94px;"><img alt="temps retour" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/marcheretour.png" width="50" /></th><br /><td class="odd" style="height: 52px; width: 99px;">0h20</td><br /></tr><br /><tr style="height: 52px;"><br /><th style="height: 52px; width: 94px;"><img alt="corde min" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/corde.png" width="50" /></th><br /><td class="odd" style="height: 52px; width: 99px;">60 m</td><br /></tr><br /><tr style="height: 52px;"><br /><th style="height: 52px; width: 94px;"><img alt="quotation" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/quotation.png" width="50" /></th><br /><td class="odd" style="height: 52px; width: 99px;">V4.A3.III</td><br /></tr><br /><tr style="height: 52px;"><br /><th style="height: 52px; width: 94px;"><img alt="navette" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/navette.png" width="50" /></th><br /><td class="odd" style="height: 52px; width: 99px;">Oui</td><br /></tr><br /><tr style="height: 52px;"><br /><th style="height: 52px; width: 94px;"><img alt="calcaire" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/roche.png" width="50" /></th><br /><td class="odd" style="height: 52px; width: 99px;">Calcaire</td><br /></tr><br /></tbody><br /></table><br /></div>     </article>

On a des br oui... mais pas placés aux mêmes endroit.

En fait les browser ont tendance à corriger les erreurs basiques de html. On voit dans le 2eme bout de code qu'il y a des br entre les balises td et tr. Ce qui ne sert a rien. A priori je dirai que le browser a corrige et remonter les br inutilies au dessus du tableau. Je n'ai pas vérifié mais je suis quasi sur que si on prend que les br foutu entre les balises td tr th etc... (et pas celles dans l'interieure d'une cellule) on va trouver le mm nombre de br que les br que l'on voit avec firebug avant l'affichage du tableau.

Donc voilà, on sait d'ou viennent les br... maintenant.
A mon avis pour exemple si tu rentres exactement ca :
<div><h1><img alt="movies" src="http://s624469831.onlinehome.fr/uploads/filemanager/templates/template-video/movies.png" />&nbsp;Gros Riou</h1><hr /><table border="1" cellpadding="5" cellspacing="5" style="width: 596px;"><tbody><tr style="height: 19px;"><th style="height: 31.9688px; width: 94px;"><img alt="Commune" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/village.png" width="50" /></th><td class="odd" style="height: 31.9688px; width: 99px;">Cu&eacute;bris</td><td class="even" rowspan="14" style="height: 674.969px; width: 349px; vertical-align: top;"><p><strong><span>Topographie&nbsp;:</span></strong><br />mettre le texte ici</p><br /><p><strong><span>&nbsp;</span></strong></p><br /><p></p><br /><p><strong><span>Photos&nbsp;:<br /></span></strong>Retrouvez toutes nos photos de ce Canyon&nbsp;<a href="http://s624469831.onlinehome.fr/modules/extgallery/public-album.php?id=8">ici</a></p><br /><p><strong><span>&nbsp;</span></strong></p><br /><strong><span>Vid&eacute;os&nbsp;:<br /></span></strong>Retrouvez toutes nos vid&eacute;os de ce canyon&nbsp;<a href="http://s624469831.onlinehome.fr/modules/xoopstube/viewcat.php?cid=4">ici</a><br /><br /><p></p><br /><strong><span><br />Liens&nbsp;:<br /></span></strong><a href="http://www.descente-canyon.com/canyoning/canyon/2740" target="_blank">Descente Canyon</a></td></tr><tr style="height: 52px;"><th style="height: 52px; width: 94px;"><img alt="Carte" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/carte.png" width="50" /></th><td class="odd" style="height: 52px; width: 99px;">3642.ET</td></tr><tr style="height: 52px;"><th style="height: 52px; width: 94px;"><img alt="Altitude" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/altitude.png" width="50" /></th><td class="odd" style="height: 52px; width: 99px;">606 m</td></tr><tr style="height: 52px;"><th style="height: 52px; width: 94px;"><img alt="longueur" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/longueur.png" width="50" /></th><td class="odd" style="height: 52px; width: 99px;">2800 m</td></tr><tr style="height: 52px;"><th style="height: 52px; width: 94px;"><img alt="denivele" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/denivele.png" width="50" /></th><td class="odd" style="height: 52px; width: 99px;">266 m</td></tr><tr style="height: 52px;"><th style="height: 52px; width: 94px;"><img alt="cascade max" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/cascademax.png" width="50" /></th><td class="odd" style="height: 52px; width: 99px;">25 m</td></tr><tr style="height: 52px;"><th style="height: 52px; width: 94px;"><img alt="temps approche" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/marcheapproche.png" width="50" /></th><td class="odd" style="height: 52px; width: 99px;">0h45</td></tr><tr style="height: 52px;"><th style="height: 52px; width: 94px;"><img alt="temps parcours" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/tempsdescente.png" width="50" /></th><td class="odd" style="height: 52px; width: 99px;">4h30</td></tr><tr style="height: 52px;"><th style="height: 52px; width: 94px;"><img alt="temps retour" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/marcheretour.png" width="50" /></th><td class="odd" style="height: 52px; width: 99px;">0h20</td></tr><tr style="height: 52px;"><th style="height: 52px; width: 94px;"><img alt="corde min" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/corde.png" width="50" /></th><td class="odd" style="height: 52px; width: 99px;">60 m</td></tr><tr style="height: 52px;"><th style="height: 52px; width: 94px;"><img alt="quotation" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/quotation.png" width="50" /></th><td class="odd" style="height: 52px; width: 99px;">V4.A3.III</td></tr><tr style="height: 52px;"><th style="height: 52px; width: 94px;"><img alt="navette" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/navette.png" width="50" /></th><td class="odd" style="height: 52px; width: 99px;">Oui</td></tr><tr style="height: 52px;"><th style="height: 52px; width: 94px;"><img alt="calcaire" height="50" src="http://s624469831.onlinehome.fr/uploads/filemanager/media/depot-members/roche.png" width="50" /></th><td class="odd" style="height: 52px; width: 99px;">Calcaire</td></tr></tbody></table></div>

Sans y toucher ca devrait dejà etre pas mal.


Alors oui c moche...mais en regardant de pres, ton outil a generer un br a chaque fois que tu avais passe une ligne sous l'editeur. Donc il y a une erreur dans l outil que tu utilises, soit au moment de la svg en base (voir s'il colle des br en base) soit au moment du renderer pour affichage. Il doit merder et changer des sauts de lignes CR ou CR LF en tag br.
Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

103 Personne(s) en ligne (63 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 103 | Plus ...