Bug Editor insertSpoiler does not correctly handle formatting

There is a bug in this version
X

Xon

Guest
When using the 'insert spoiler' this can result in unexpectedly broken bb-code.

Given this bb-code in the rich-text editor:
line1
line2
line3
line4

Drag-select line2/line3, and select insert spoiler.

This will result in the following html:
<p>line1</p
<p><strong>
line2</strong></p>
<p>line3
</p>
<p>line4</p>

This generates the following bb-code:
line1
line2
line3
line4

Which is rendered as:
line1
line2
line3
...

Read more

Continue reading...