1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Editor - blank line between two formated lines (for ie: bold/italic) are eaten

Discussion in 'Resolved Bug Reports' started by cclaerhout, Jun 8, 2013.

  1. cclaerhout

    cclaerhout Well-Known Member

    1) See this message
    2) Edit it
    => the blank line is eaten
    Tested on FF.
     
  2. Mike

    Mike XenForo Developer Staff Member

    Looks like my change to simplify the output BB code as far as possible has re-exposed this.
     
  3. cclaerhout

    cclaerhout Well-Known Member

    I'm curious, do you use an iterator (prev, next, rewind) like you did with the parser or do you use some regex callbacks to "pre-parse/fix" (I'm not sure of the name) the html<=>bbcode converter?
     
  4. Mike

    Mike XenForo Developer Staff Member

    This should be fixed now.

    It is using regexes, but it's using the BB code parser to help understand things in more detail.
     
    cclaerhout likes this.
  5. cclaerhout

    cclaerhout Well-Known Member

    Just a link to the SCEditor that seems to have a pure JS html<=>bbcode converter&parser which works very well (code available on Github).
    Edit: oups, it still not perfect.
     
    Last edited: Jun 12, 2013

Share This Page