WordPress.org

Ready to get started?Download WordPress

Forums

Line break in the text editor (9 posts)

  1. pensierinmusica
    Member
    Posted 3 years ago #

    How is it possible that still nowadays, with all the intelligent features WordPress provides, users don't have a simple way to save multiple line breaks in the text editor?

    The only solution so far seems to go in the html editor and write "
    " tags, which anyway get reset when you switch back to the rich text editor.

    Could WordPress developers please provide users with this simple feature, for example through a checkbox in the "writing settings", like they did for emoticons?

    Thanks :)

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Which editor? The HTML or Visual Editor

  3. Strictly speaking, forcing <br /> as extra line breaks is bad HTML and bad design. Not to mention that we know jumping back and forth between HTML and Visual editors goobers formatting a lot :/

    There are some plugins that will let you do this with the tinyMCE editor.

  4. pensierinmusica
    Member
    Posted 3 years ago #

    @esmi I would make it automatic in the visual editor and leave the manual coding in the html editor, making sure that switching between the two does not reset your changes.

    @Ipstenu I've tried some plugins, (like "advanced tinyMCE"), but they mess-up other features. What's more, WordPress is designed to be user-friendly and intuitive. That's the key of it's very success. It's not aimed at computer geeks, although they can still use it in more advanced ways. So, from a normal user perspective there must be a way to insert multiple line breaks in the visual editor, without any efforts. We are all used to be able to do the same in Word, Pages, Open Office, or any text editor we use on our desktop.

  5. The web is not text. I'm not trying to be blasie about it, but it's just ... There are still lmits about what you can and can't do, YET, on a lot of web based projects.

    What's more, WordPress is designed to be user-friendly and intuitive. That's the key of it's very success. It's not aimed at computer geeks, although they can still use it in more advanced ways.

    That's one interpretation, sure. But it's no more accurate than any other. It does work very well for all levels of users, but not perfectly. TinyMCE has limits. And IIRC those are limits of tinyMCE, and not WordPress itself. Not being dismissive, but accepting of the current limits. Until someone can code WP to be all things for all people, you have to make choices and accept limitations.

    Other posts about this...

    http://wordpress.org/support/topic/ltbr-gt-for-gods-sake?replies=16
    http://wordpress.org/support/topic/how-to-make-the-editor-stop-removing-blank-lines?replies=14

  6. pensierinmusica
    Member
    Posted 3 years ago #

    Hi Ipstenu, saying "the web is not text" does not help much on the present subject. Same thing about "accepting the current limits". I don't think WordPress it's a bad product, in fact it's the opposite and I love it.

    Still, since this section is named "Requests and Feedbacks" I feel free to express what I think should be fixed in future updates. To me, the impossibility of adding extra line breaks in the visual editor is an obvious "bug".

    I talk from real-life user experience, not from a technical code-hacker point of view. Did you ever ask yourself why years ago WordPress became way bigger than Drupal? Or Php than Python? "Simplicity" is the answer. Their succes is bond to being user-friendly, easy to use and to learn, still allowing more advanced features if needed.

    By the way, I already looked at the older posts you are citing, but it seems that nobody has ever found a proper solution yet.

  7. I realized my reply was a tl;dr

    This has been suggested before: http://core.trac.wordpress.org/ticket/2285

    Not going to be fixed though as Otto mentions:

    This is not a TinyMCE thing, it's wpautop that's doing it. And frankly, I think it's desired behavior. If they want vertical space, they should be using styles on the paragraph. Okay, not the best UX, but perhaps an easier way to insert a vertical space is called for instead of letting the user enter non-semantic P's and BR's?

    So turn off wpautop and it will work for code view, but I think TinyMCE will still eat it for Visual views.

  8. pensierinmusica
    Member
    Posted 3 years ago #

    Hi Ipstenu, thanks for your help. I still don't understand why the WordPress team is so resistant to such a simple and basic change, that many users would happily enjoy.

    Is there a way to let them know?

  9. Post it in trac, but I suspect the same answer will apply.

    There's no point in changing how wpautop handles it if TinyMCE is going to ignore that.

Topic Closed

This topic has been closed to new replies.

About this Topic