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

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

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?
 
This should be fixed now.

It is using regexes, but it's using the BB code parser to help understand things in more detail.
 
This should be fixed now.

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

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:
Top Bottom