Solved Editor insertSpoiler does not correctly handle formatting

This topic has been solved
X

Xon

Guest
When using the 'insert spoiler' (and bb-code which uses wrapSelectionText) 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...

Read more

Continue reading...