Closed Toggle BB code merges separate adjacent [B] tags into a single [B]...[/B] block

goxy63

Member
Licensed customer
Affected version
2.3.12
XenForo version: 2.3.12

This seems to be more of a confusing editor/UX issue than a serious bug, since the rendered result remains correct.

I noticed that toggling between the rich text editor and BB code mode changes the structure of adjacent [B] tags.

For example, if I save:

First line
Second line
Third line

Another bold word
normal text.​

and then switch to the rich text editor and toggle back to BB code mode, it becomes:

First line
Second line
Third line

Another bold word
normal text.​

The rendered result appears to be the same, but the original separate [B] tags are merged into one larger block.

This can be confusing when manually checking or editing BB code, because it looks as if the tags have moved or disappeared.

I reproduced this in a new article using only standard XenForo BB code, without any custom BB codes involved.
 
This is intentional simplification and to workaround a bunch of less desirable edge case. There are no plans to change it. It's possible the behaviour in 2.4 is slightly different although I haven't explicitly tested it and I don't think it will materially affect the case you're talking about.
 
Back
Top Bottom