1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed WYSIWYG editor loses line breaks

Discussion in 'Resolved Bug Reports' started by soloarquitectura, Apr 6, 2011.

  1. soloarquitectura

    soloarquitectura Active Member

    Original post:

    When editing:
    erich37, lightbox and gldtn like this.
  2. Vincent

    Vincent Well-Known Member


    I just download and install version 1.0.1 again.
    Chrome 10 works fine, only appears in IE9.

    I can reproduce the problem, it bugs our here too on Chrome beta 12
  3. lightbox

    lightbox Active Member

    I think there are still quite a few issues with IE9 compatibility mode on or off.
    Xenforo eating line feeds is one of them. Needs to get checked.
  4. Shamil

    Shamil Well-Known Member

    Check with TinyMCE: 3.4.2 or
  5. Ryan Kent

    Ryan Kent Well-Known Member

    This issue consistently appears for me in FF 3.6
    erich37 likes this.
  6. Mike

    Mike XenForo Developer Staff Member

    I can confirm the issue and it's in our HTML to BB code conversion. As such, it's actually really really evil to fix.
  7. Ryan Kent

    Ryan Kent Well-Known Member

    While we are on the topic, I can share a couple other related issues I have noticed with the editor.

    At times I will make a post, it will appear perfectly, then I will edit the post and save, and I will notice that the line spaces changed elsewhere in the post, in an area I did not touch. This has happened on multiple occasions. If you do go digging in that dark evil place, you may notice something related to this issue.

    Also, in the regular editor, when images are inserted they appear where ever the cursor has been placed. When we switch to the Rich Text editor, images are always inserted at the bottom.
    duydangle and shenmuee like this.
  8. lightbox

    lightbox Active Member

    Any progress on this one after more than 6 months? ;)
    The strange editor bugs are really annoying when I try to create/edit well formatted forum content.

    duydangle and erich37 like this.
  9. digitalpoint

    digitalpoint Well-Known Member

    I'm not going to lie... the losing of line breaks and losing tabs in WYSIWYG mode is pretty maddening when you use a lot of [code] BBCode like I do. :)

    Have to keep remembering to go into non-WYSIWYG mode, but even then you are screwed if you have to edit an existing post.
    Andy.N likes this.
  10. Mike

    Mike XenForo Developer Staff Member

    I did look at the loss of tabs in Webkit, and it doesn't look like the span that has the tab is even sent to the server. I might be able to change that, though I'm not sure what in TinyMCE is causing that.

    Regarding the line break handling, I've basically rewritten a good portion of our HTML to BB code translation and it seems much more accurate. It's running here, so let me know if you still see any oddities. (Note, this only changes what happens when a post is saved, not the translation that has to be done if you try to edit it again. There are still some tricky issues with that.)
    erich37 and Digital Doctor like this.
  11. Andy.N

    Andy.N Well-Known Member

    Good to hear that, Mike.
    Our forum makes good use of code bbcode and it's one of the things that got complained about.
  12. digitalpoint

    digitalpoint Well-Known Member

    Should we create a separate bug report for the tab thing?

Share This Page