Access $contentTemplate in template editor

Marcus

Well-known member
To force simple editor in conversations I would like to add this to the editor template (later with a template hook), but in the editor template $contentTemplate is unknown:
Code:
<xen:if is="{$contentTemplate} == 'conversation_view'"><xen:set var="$showWysiwyg"></xen:set></xen:if>
 
That template is rendered separately so you can't access those container params:

XenForo_ViewPublic_Helper_Editor::getEditorTemplate

An addon is required.

I came up with this addon to disable the RTE user preference for the entire conversation controller. I think this will work for you.
 

Attachments

Top Bottom