Fixed Preview of threads with gallery media

Affected version
2.2.0 RC2


If only a bbcode of a gallery media is added to the rich text editor the button "Preview" doesn't switch to preview of the new message. For example:
[GALLERY=media, 11986][/GALLERY]

After adding a text it works.
text [GALLERY=media, 11986][/GALLERY]

In my forum I have a lot of photos. Therefore it can be that messages in some threads have only photos and the text is only in the description of the media item.

Chris D

XenForo developer
Staff member
There might not be a great deal we can do about this in the short term but it might be worth us looking into it. It would be an XFMG bug, not XF.

XF Bug Bot

XenForo bug fixer bot
Staff member
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.0 RC3).

Change log:
Sync editor contents before attempting to toggle the preview.
There may be a delay before changes are rolled out to the XenForo Community.