HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Lines Breaks

2»

Comments

  • awesome, seems to be working nicely here ;)
  • SS ✭✭
    How to disable that?
  • SS ✭✭
    edited February 2010
    I found it: Format::Html()
    $Mixed = preg_replace("/(\015\012)|(\015)|(\012)/", "<br />", $Mixed);
    Wonder to move it to config or param to Html().
  • @S - I totally bought this up in my CKEditor plugin for v2: http://vanillaforums.org/discussion/10711/very-alpha-ckeditor-in-vanilla-2/

    Though I almost feel as if this needs to be a per-post option, like how you could select what editor to use in Vanilla 1. This way the parsing is done when a post is made, and the HTML could be cached. And this means if an addon for whatever reason is using Html() for output, it will know whether or not line breaks are enabled. Any thoughts, @Mark?
  • How do you accomplish this in Vanilla 3.3.?

  • Just testing, please ignore. The quick brown fox jumps over the lazy dogs back.

    The

    quick

    brown

    fox

    jumps

    over

    the

    lazy

    dogs

    back.

    And last, this video

  • Just testing, please ignore. The quick brown fox jumps over the lazy dogs back. The quick brown fox jumps over the lazy dogs back.The quick brown fox jumps over the lazy dogs back.The quick brown fox jumps over the lazy dogs back.The quick brown fox jumps over the lazy dogs back.

    The

    quick

    brown

    fox

    jumps

    over

    the

    lazy

    dogs

    back.

Sign In or Register to comment.