Pouvoir enchainer des sauts de lignes

Par défaut WordPress supprime les sauts de ligne qui se suivent : impossible de sauter plusieurs lignes.
Ce problème est évoqué et solutionné dans cette discussion.

Il faut donc trouver le fichier : /wp-includes/js/tinymce/plugins/wordpress/editor_plugins.js

Rechercher la ligne contenant :

// Remove anonymous, empty paragraphs.

(Ligne N°242 dans mon fichier, n° 195 dans le post de AmO)

Et « commenter » la ligne qui suit

Ligne de départ :

content = content.replace(new RegExp('<p>(\\s| )*</p>', 'mg'), '');

Ligne « commentée » :

//content = content.replace(new RegExp('<p>(\\s| )*</p>', 'mg'), '');

Eh voilà, merci AmO


Tags : , , , , ,
Trackbacks Commentaires
  • musky00 dit :

    Alors là, merci beaucoup libretto. C’est modifié chez moi ;)

  • libretto dit :

    Malheureusement il semble que ça ne fonctionne pas aussi bien que ça cette modification. Il y a un programme qui s’esquinte à continuer de formater les sauts de lignes intempestifs. Je continue de chercher mais par ici on est arrivé à trouver la séquence :
    < ul >
    enter
    espace
    < / ul >
    pour sauter des lignes.
    Il y a aussi la séquence
    enter
    espace
    enter
    qui donne quelques résultats.
    A l’occasion je ferais un petit article un peu plus complet sur ce sujet.

  • musky00 dit :

    Bien volontiers, j’attends avec impatience.

  • Tom dit :

    Cool les astuces, c’est toujours ça en attendant! :)
    J’avoue que c’est un truc qui m’enerve avec WP

  • Marc dit :

    Essayé. Cela ne fonctionne pas chez moi.

    Pour le moment, j’insère un « . », cela se voit, mais cela introduit un saut de ligne supplémentaire.
    D’autres moyens ?
    Merci de nous informer cas échéant

  • Amaury dit :

    Tiens ! on parle de moi :)

  • SWAT dit :

    Perso, ça m’a saoulé cette histoire d’espace, du coup je met des points de couleur blanc, c’est impeccable.

  • Benj dit :

    Hello,

    juste un mot pour savoir si vous aviez avancé sur ce gros probleme de WP, pour le moment j’utilise la technique du point blanc, mais ce n’est pas la panacée !

  • Sam dit :

    J’utilise personnellement l’ancien éditeur de base de wordpress FckEditor
    Il n’y a plus aucun souci maintenant que ce soit pour les espacements, les saut de ligne où encore le positionnement des images. Je ne sais pas si l’un d’entre vous l’utilise mais c’est la seule alternative que j’ai trouvé pour ne plus avoir affaire à TinyMce …

  • binbin dit :

    A part taper des petits points blancs sur fond blanc (une chose que google n’aime pas du tout) y’a-t-il enfin une solution ?

  • Astuce trouvée !

    Taper ceci autant de fois que l’on veut dans l’éditeur de code HTML (et non l’éditeur visuel, il faut aller dans l’onglet HTML)

    <br clear="none" />

  • oups… désolé pour le repost :)

  • Guib dit :

    Excellent ! Merci Florian, depuis le temps que je cherche ça …

  • Jipi dit :

    Bonjour,
    l’astuce semble marcher en mode html, mais dès que l’on repasse en mode visuel, le code est supprimé.

  • Olivier C dit :

    « l’astuce semble marcher en mode html, mais dès que l’on repasse en mode visuel, le code est supprimé. »

    Je suis d’accord, je viens moi aussi de tester l’astuce et cela ne marche pas…

    Pour les usages les plus courant je met une ligne en :

    Mais cela ne marche pas dans tous les cas…

  • Olivier C dit :

    Argh ! Le code a été mangé par le commentaire, le voici :

    « strong » « /strong »

    Attention : à la place des accolades il faut mettre des chevrons() (je ne sais pas citer le code HTML dans un commentaire comme Florian l’a fait…)

  • Voici une autre solution :
    http://usallunited.com/portfolio/plugins/wptuto_hop/

    En gros, si l’on souhaite insérer un saut à la ligne on écrit : [saut]

    Si on souhaite faire 3 sauts à la ligne on écrit : [saut nbr=3]

  • asgdb dit :

    Hello to you all, I’m writing here to see if you have what it takes to start to consider yourself an online money maker and who has been wondering if you can make money from home? I want you to try this as it is a glimpse of what you learn in this course « My Online Income System. » It is nothing more than a 5 minute article for you to write. I know you are saying « HUH? » but this will show you if you have what it takes for the course.
    What i want you to do is go to ezine articles and sign up to become an author.(it’s free) Then i want you to think of something around your house that you have recently purchased and is popular out there on the market right now. Go on look!!!!! I’ll wait for you. Okay have you found something? A good idea would be an iPod, TV, BBQ, car, stereo, new type of make-up, skin care product, something seasonal (meaning what season you are in presently) etc…
    Now what i want you to do is write a 350 article on what you thought about that product you just purchased and tell the world how you feel about that product. The only key today is put your products name as the first word in your title. Remember this is an example of what you will learn in My Online Income System if you can get through the little task at hand. I tried this and i was amazed and that is why i am trying to help open your eyes just a little bit to show you how this works. Do you have your article finished? Now it is time to submit your article. It may take a couple of days for you to get your article but be patient as the good part is coming up.

  • Once you have done this please let your article go live on the site for minimum of 4 days. Once that is done and you have opened this article back up again to finish what we have just completed i want you to open your Ezine articles account and check your article. Look on the left side of the screen and you should have a few options on what you can do. Pick article(s) view. Look at the number of times people have read that article and how many times they looked at your personal profile.
    Now what if that was your own product and you had a couple articles out there talking about it?Now what if every time somebody read your article about your product, liked the article and the product and you had a link sending them right to that product? That might mean money for you right? Yes it could. YES yes yes. In this course My Online Income System will teach you all the aspects of what it takes to be successful and make real money from home today. It is by far the best investment for you if it is a proven legit top rated program you are looking for and the very best out of the ones i have ventured out and tried up to date.

  • Even boys get excited to go to the Build a Bear Workshop! They love to watch and participate in designing their own bears. A lot of time boys are left out of what some might consider being girl only venues. But if you are lucky enough like me to have a Build a Bear Workshop in your local mall, you will see that boys get just as excited to build their own bear.
    The types of bears or animals they choose are usually more sports oriented. Boys tend to like the bold colors of reds, blues, and oranges. These are strong colors. Boys like to be strong and show their power. And when they get involved in designing a bear, they are demonstrating their power. Boys feel power not only in sports, but also in playing a musical instrument. The excitement of controlling a ball in a sport, or mastering the notes on a musical instrument gives a boy the feeling of accomplishment. All of which gives way to their creative nature.

  • The Superyard XT Play Gate by North States Industries is a six panel play gate ideal for creating a safe playing area for your baby. It has been very popular for a while now (actually on Amazon.com is the absolute N.1 seller in the in the baby safety category). Why is that? There are several reasons and here are the main five:
    1. It helps you create a safe and spacious play area for your child. The play gate is 26 inches high and has a diameter of 18.5 square feet, which makes a quite spacious play area for your child (or children). You can even extend the Superyard with the two panel extension kit (you must purchase it separately) and get a 34 square feet play area!

  • e-noria dit :

    This play yard is very easy to use and assemble, the six panels are interlocking and pre connected so all you need to do is unfold the panels and connect them. Furthermore it’s portable, lightweight and made of water resistant plastic (which make it easy to clean). Many parents state in their reviews that the play yard is very durable and after years of usage it shows almost no signs of wear.

  • etudeinternet dit :

    It’s a versatile gate. You can use it as a play yard or an enclosure to keep your baby away from hazardous areas of your house. You can also purchase the additional panels to extend it even further or a nice sun shade when you’re using it outdoors. Pet owners use it too.

  • Lester vous dit :

    I know you are saying « HUH? » but Timberland pas cher this will show you if you have what it takes for the course

  • juste date dit :

    Malheureusement il semble que ça ne fonctionne pas aussi bien que ça cette modification. Il y a un Timberland pas cher programme qui s’esquinte à continuer de formater les sauts de lignes

  • Many auto-immune disorders require that you make a complete dietary change including avoiding tobacco, smoking, and alcohol. They recommend you get plenty of minerals, vitamins in the purest form possible and sometimes that may be difficult to maintain long term. Ensuring you follow those recommendations can be expensive and exhaustive but Ardyss International has a range of products that can help tackle some of the illnesses listed above while keeping cost relatively low.

  • Ardyss International flagship nutritional products Le’ Vive, Le’Vive Green, and Le’ Vive Red receive rave reviews from the medical community. Le’ Vive’s origins span the globe featuring the power of the world’s top five antioxidant fruits- Pomegranate, Goji, Acai Berry, Noni, and Mangosteen in one product. With these super fruits at the helm in an organic compound these products can help with, energy complaints, aches and pains, and maintain healthy levels of blood sugar, protects the liver, preventative care, and sustain health.

  • The juices are fortified with botanical extracts that help maintain healthy cellular and physical functions. The New England Journal of Medicine reports that 9 out 10 people die from dietary deficiencies. When the body is completely clean, the result is the protective organs functioning properly helping to eliminate toxins that aren’t healthy. Regardless of the ailment Ardyss International has over 24 nutritional products for all sorts of conditions.

  • Julien Amaury dit :

    Ce problème est évoqué et air yeezy 2 solutionné dans cette discussion

  • other vehicles dit :

    Ce problème est évoqué et solutionné nike tn requin dans cette discussion

  • was happy dit :

    cupcakes and was happy to finally get down to it this past weekend I nike tn femme also had a chance to experiment with making royal icing shiny

  • Je ne sais pas si l’un d’entre vous l’utilise mais c’est la seule alternative que j’ai trouvé pour ne plus avoir affaire à TinyMce …Sweat Pas Cher Regardless of the ailment Ardyss International has over 24 nutritional products for all sorts of conditions.

  • should be taken dit :

    impossible de sauter nike air max plusieurs lignes

  • ligne qui dit :

    result is the protective organs functioning properly helping to chaussures salomon eliminate toxins that aren’t healthy

  • christina Kathleen dit :

    Ce problème est évoqué et solutionné chaussures requin dans cette discussion

  • modetnpascher dit :

    The excitement of controlling a ball in a sport, or mastering the notes on a musical instrument gives a boy the feeling of accomplishment.http://www.modetnpascher.org All of which gives way to their creative nature.

  • tn dit :

    Je ne sais pas si l’un d’entre vous l’utilise mais c’est la seule alternative que http://www.gaypodcast.fr/tn-pas-chere-livraison-gratuite-chaussure-nike-tn-requin-pas-cher.html j’ai trouvé pour ne plus avoir affaire à TinyMce …

  • dadicar dit :

    It may take a couple http://www.dadicar.fr/Nike-Tn-Requin-Pas-Cher-s1959.html of days for you to get your article but be patient as the good part is coming up.

  • But if you are lucky enough http://www.lagarenne-dulac.fr/timberland-pas-cher-soldes-timberland-rouge.html like me to have a Build a Bear Workshop in your local mall, you will see that boys get just as excited to build their own bear.

  • It may take a couple of days http://www.lavilledesamoureux.fr/jordanpascher/nike-air-max-pas-cher-chine/ for you to get your article but be patient as the good part is coming up.

  • Michael dit :

    Votre solution ne marche plus depuis, voici pour ceux qui éprouve encore ce problème récurent de saut de ligne : http://creer-un-site.com/creer-un-saut-de-ligne-avec-lediteur-wordpress/#section-les-solutions-existantes

Réagissez