Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

[CLEditor jQuery WYSIWYG addon] IE uses paragraph tags, firefox uses br tags

edited February 2011 in Vanilla 2.0 - 2.8
I just noticed that IE is converting converting new lines to <p></p> whereas firefox is using <br /> tags for new lines.

IE post: This uses <p></p>
Firefox post: This uses <br />

In the first example with the p tags, it's placing new lines between the <p></p> tags, so when it finally gets to the output stage and renders, it's ALSO running the nl2br() me extra <br /> tags between paragraphs.

Javascript is my unfortunately, looking @ the cleditor js only makes my eyes glaze over. But is there any way to have the same behavior with all browsers? Ideally, I'd prefer all <p></p> tags...but only if it doesn't also run nl2br between paragraphs on output.


  • Options
    Safari and Chrome seems like converting to <div>...</div> tags for new lines.
    I don't know in Opera but It's enough for a messing up markup.
  • Options
    up, anyone with a solution on this? <p> ans <br> are added on IE. so extra space appears, and it's not sexy
  • Options
    Hi isilmerel, I have same problem.
    When user submit text in firefox its works well with nl2br, but when submit text from IE its not. Do you know why?
    Thanks in advance,
  • Options
    Nope. I don't.
  • Options
    Any progress on this? As noted, earlier Safari uses divs. It would be nice to simply use paragraph tags since most often, that's what the context actually is.
  • Options
    So it looks like it's an issue with the actual CLEditor jQuery plugin…

    That was posted shortly after releasing the current version (1.3.0) on October 12, 2010. Not sure when an update can be expected.
Sign In or Register to comment.