XF 2.2 In regards to BB code, how I can tell if the editor is in 'view' mode or 'preview' mode?

Kevin

Well-known member
I'm working with an add-on that overwrites the default YouTube template. I'm having some issues though when the editor is in 'preview' mode.

How can I tell from within the perspective of a media BB Code that it is being used in the normal 'view' mode or if the editor is in 'preview' mode? Essentially I want to end up with 'if in preview mode use the normal XF code else in view mode then overwrite it'.

Playing around with the various templates and even XF\BbCode\Helper\YouTube I can't find figure out a way of identifying the current environment of where the BB code is being used.
 
Top Bottom