WordPress.org

Ready to get started?Download WordPress

Forums

Force line break inspite of Tiny MCE editor using a Mac (48 posts)

  1. Torley
    Member
    Posted 7 years ago #

    This sounds like a pretty crazy epic — I came across here after googling for some related stuff, and indeed, this is really annoying.

    Doesn't make sense to me line breaks get stripped — if I didn't want so many line breaks, I'd press the Backspace key! And yes, a couple or even three line breaks helps a lot when presenting certain kinds of content in sections.

  2. vkaryl
    Member
    Posted 7 years ago #

    I don't believe there's any way to "uninstall" the wysiwyg. Mostly it's possible to simply not use it by disabling it in the normal manner.

  3. freedomrock
    Member
    Posted 7 years ago #

    ZOMG.

    This has been driving me CRAZY. I have tried the above suggestions as well with no luck. I'm on a Mac using Firefox. I'm starting to think the only option is to convert to another blog package altogether.

    Sigh...

  4. mendezki
    Member
    Posted 7 years ago #

    Grrrrrrr maddening indeed, frantically inserting line breaks until I found this thread.

  5. thehiatus
    Member
    Posted 7 years ago #

    I think I may have found something that works. You need to edit the wp-includes/js/tinymce/tiny_mce_gzip.php file.

    You'll find an initArray that has many of the tinyMCE settings including "force_p_newlines", "force_br_newlines", "remove_linebreaks", and "convert_newlines_to_brs". Try fiddling with these settings and see if that helps.

  6. GMT
    Member
    Posted 7 years ago #

    I am new to this post, but sadly not to this problem. I have tried changing the tiny_mce.js file and the tine_mce_gzip.php file and the changes had no effect on wordpress deleting line breaks. If anyone has any suggestions I would be sooooo glad to hear them. I've already been through another entire post on this
    <http://wordpress.org/support/topic/52958?replies=27> that resolved the issue for one user by modifying tinyMCE as suggested above.
    I don't know if this is really a Mac problem, but I am working on one using Firefox and wp 2.0.5.

  7. urbanbrain
    Member
    Posted 7 years ago #

    Wow, this is crazy... I just spent forever (well I guess not forever but two days) looking into this and I can't believe there is no solution. someone write a plugin.

  8. Ciryaquen
    Member
    Posted 7 years ago #

    Here we go again.

    Someone else asked me to help them with a new WordPress installation. This "correcting the code you write" regardless if you intend to use a line break is still a problem with WordPress 2.0.6.

    Doesn't anyone know how to disable this Tiny MCE thing so someone can use line-breaks? Anyone know any coders that work on WordPress who might be willing to investigate this bug?

  9. lonetrotter
    Member
    Posted 7 years ago #

    I also find it annoying - tough - its not a bug. Whats also annoying is that the RTF strips linebreaks - but not duplicates (or fiftyseventlicates)of em:s or strong:s.

  10. baweibel
    Member
    Posted 7 years ago #

    I have found a solution. Tried everything suggested but to no avail. Formatting is correct upon initial post but editor strips br tags, &nbsp, etc. whenever the post is edited. That includes space between two photos that are clearly entered with the p tag. It also forces text to wrap around photos rather than lie above or below a photo, regardless of the align attribute used. I now enter the following code in the html view, wherever I want to force a line break: br clear="all" / (add the front less-than and end greater-than symbols). It works and the editor does not strip it out.

  11. JSmith
    Member
    Posted 7 years ago #

    Oh my GOD. I have had this problem for ages and the only way to fix it was to post using IE. Since I only have a Mac at home it meant fixing every "home written" post the next workday on my office machine and opening IE (I use FF at work). Since the 2.1 upgrade even that didn't work.

    Thank you, baweibel, you've solved it for me!

  12. pepsimax2k
    Member
    Posted 7 years ago #

    <br clear="all" />

    Is this still the only way to have consecutive multiple line breaks in a post?

  13. mendezki
    Member
    Posted 7 years ago #

    baweibel, superthanks!

  14. aulbricht
    Member
    Posted 7 years ago #

    I was just having this same problem and took a look at the code in formatting.php... It appears that when you are writing a post using the rich text editor, if you go to the "code" tab and insert <WPPreserveNewLine> text </WPPreserveNewLine> tags around a block of text, it will give you a line break above the block. Hope that works for you.

  15. aulbricht
    Member
    Posted 7 years ago #

    nevermind - don't use those tags. For whatever reason it worked the first time, but after I switched between code and wysiwyg tabs, it totally f'd up my formatting. Argh! gg wordpress. How can the rich text editor be so broken? Surely somebody tested it...

  16. cutout
    Member
    Posted 7 years ago #

    I've found a fix using baweibel's idea. Open formatting.php, go to line 402 and make this change:

    $content = str_replace('<br />', '<br clear="all" />', $content);

    Hacky, but works!

  17. jdaviescoates
    Member
    Posted 7 years ago #

    I still have this problem and its really doing my head in.

    Like others on all the other threads about this...

    http://wordpress.org/extend/ideas/topic.php?id=154&page&replies=3
    (2 months ago, 3 replies)
    http://wordpress.org/extend/ideas/topic.php?id=11&page&replies=11
    (2 months ago, 11 replies)
    http://wordpress.org/support/topic/76657?replies=2
    (9 months ago, 2 replies)
    http://wordpress.org/support/topic/74129?replies=32
    (9 months ago, 32 replies)
    http://wordpress.org/support/topic/73161/page/2?replies=46
    (10 months ago, 47 posts)
    http://wordpress.org/support/topic/52958?replies=19
    (1 year ago, 27 posts)

    ...I can't believe that WP has messed this up so badly and for so long (over a year).

    All we want is line breaks. Is that really too much to ask?

    When I did what cutout suggests in one of the threads above I thought I'd solved the problem (for a moment), because when I clicked on html button and manually added and then update, the line break were still there, and when hit html again they were still there too, but as soon as I actually hit save and viewed the page, there were no line breaks!

    I've tried changing some of the parameters in the tiny_mce.js file too, but to no avail.

    Please, please, please, someone fix this bug!

    I'm on WP 2.0.2 but from what I hear from friends 2.1 still has this problem.

    HELP!

    /me cries

  18. jessicamullen
    Member
    Posted 7 years ago #

    so i think if you use <br clear="none" /> instead of <br clear="all" />
    it's much more like a normal line break - clear all made a huge space.

Topic Closed

This topic has been closed to new replies.

About this Topic