Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter
Support for Vanilla Forums Cloud product

In this Discussion

Follow Us


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

edited February 2011 in Questions
This discussion is related to the CLEditor jQuery WYSIWYG addon.
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() function...giving me extra <br /> tags between paragraphs.

Javascript is my kryptonite...so 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.

Comments

Sign In or Register to comment.