WYSISWYG - Added Breaks

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • insidedesign
    Senior Member
    • May 2007
    • 154

    WYSISWYG - Added Breaks

    I am working with vB Advanced, and I am creating pages in the backend with HTML enabled. So, I simply copy-n-paste my code into the WSIWYG editor. However, when it is published - each line of code has a '<br />' added to it.

    These added html breaks are ruining my javascript, and causing errors. How can I set it so that these html breaks are not added within the admin area?

    I assume it cannot be a sitewide setting, as it would affect the frontend posting.
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    The parser inserts a line break for each new line in the HTML code in the post. When table code is used over multiple lines these breaks accumulate above the table. I think you can modify the includes/class_bbcode.php file to change this behavior. Search for "nl2br". If you have some coding ability then you can post on www.vbulletin.org for help with this.

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...