Bizarre problem with BBCode Editor: impossible to create paragraphs

magister

TCS Member
Thread starter
Adult Cat
Joined
Oct 29, 2014
Messages
136
Purraise
15
Location
British Empire
Just curious as to whether anybody has any idea how to get around this one.

After having problems with the default editor, both with Firefox and the dreaded Internet Exploder, I've switched to the BBCode Editor. All is tremendously better and more stable, save for one small problem.

I cannot convince the damn thing to treat returns (enter) as paragraph breaks. No matter how many lines I insert, they are translated as “<br>”. As an example:

Paragraph 1.
Paragraph 2.

Paragraph 3.


Paragraph 4.

Not a “<p>” in sight when looking at the rendered source HTML; everything becomes multiple “<br>” tags, which is just a tad annoying. There appears also to be bizarre things going on regarding spurious heading and list tags popping up in strange places.

Anybody have any ideas? Or is the BBCode editor simply hopelessly broken?

Thanks. :)
 

stephenq

TCS Member
Veteran
Joined
Jun 19, 2003
Messages
5,672
Purraise
944
Location
East Coast, USA
Just curious as to whether anybody has any idea how to get around this one.

After having problems with the default editor, both with Firefox and the dreaded Internet Exploder, I've switched to the BBCode Editor. All is tremendously better and more stable, save for one small problem.

I cannot convince the damn thing to treat returns (enter) as paragraph breaks. No matter how many lines I insert, they are translated as “<br>”. As an example:

Paragraph 1.
Paragraph 2.

Paragraph 3.


Paragraph 4.

Not a “<p>” in sight when looking at the rendered source HTML; everything becomes multiple “<br>” tags, which is just a tad annoying. There appears also to be bizarre things going on regarding spurious heading and list tags popping up in strange places.

Anybody have any ideas? Or is the BBCode editor simply hopelessly broken?

Thanks.
No idea but bumping this up so maybe someone will see it!
 
  • Thread Starter Thread Starter
  • #3

magister

TCS Member
Thread starter
Adult Cat
Joined
Oct 29, 2014
Messages
136
Purraise
15
Location
British Empire
All right. After a little reading and some experimentation, I've found a simple (if slightly annoying) work-around.


It seems there are various incarnations of the BBCode editor (no idea as to whether they're different forks, or independent implementations), where line-breaks may not be translated correctly, depending on various configuration settings. The simplest work-around is to insert HTML code (not BBCode) as part of the text.


As an example, inserting <p> into the text will render as a paragraph break.


Of course, the problem with this is that one has to be familiar enough with HTML to know what to insert. Conceivably, allowing direct code insertion could also be a security risk, depending on whether the BBCode editor parser is intelligent enough to filter out anything problematic.


So, not an ideal solution, but it does the job. :)
 
Last edited:
Top