Fixed Rich Editor improper handling of formatting edge case

Warchamp7

Active member


[CENTER]
[spoiler]
Line of text

[LIST]
[*]Item 1
[list]
[*]Nested Item
[/list]
[*]Item 2
[/list]
[/spoiler]
[/CENTER]



Enter this into the editor and toggle the Rich Editor on and off. The Rich Editor will incorrectly place Spoiler tags around "Line of Text" causing the below



Line of text
  • Item 1
    • Nested Item
  • Item 2

Expected behaviour:


Line of text

  • Item 1
    • Nested Item
  • Item 2
 
The spoiler code is sort of incidental here -- the issue is generally caused by lists within alignment tags.

I believe I have this fixed now. There were actually 3 distinct bugs here that I had to work through to make this behave as expected when editing and when saving the edit.
 
Back
Top Bottom