Highlighted code not retained in code modal

mattrogowski

Well-known member
Affected version
2.2.8
Searched and haven't found reported elsewhere...

If you paste some code into the message body, highlight it and select the "Code" BBCode (the full one not the inline one), it used to retain the code you'd highlighted, however now says "undefined". This seems to have only recently broken.

2.2.6:

1644582630549.png
1644582643119.png

2.2.8:

1644582696378.png
1644582708505.png

Reproduced locally and on forums here.

It's weird though as doesn't seem to always happen. At first it appeared to only be if the code was > 1 line, but can get it to work with multiple lines sometimes... this code snippet always has the issue tho.
 

mattrogowski

Well-known member
I can no longer reproduce this after a browser update - if nobody else is able to reproduce and doesn't get reported again then can probably close.
 
Top