Vanilla is proud to present version 2.2.
Please upgrade to 2.1.x here. The 2.0 branch is no longer being updated.

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

edited February 2011 in Vanilla 2.0 Help
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() 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.


Sign In or Register to comment.