forum.node_id conditional in editor_js_setup not funtioning


Well-known member
So, I am rearranging some buttons in the TinyMCE editor, I want to use the forum.node_id conditional however it won't work.

This is how I have it:

theme_xenforo_buttons2 : 'bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,adv_cust_staff,|,bullist,numlist,outdent,indent,|,<xen:if is="{$forum.node_id} == 28">link,unlink,</xen:if>image,xenforo_media,|,xenforo_code,xenforo_custom_bbcode',

Jake Bunce

XenForo moderator
Staff member
The params for the editor template are defined in this file:


Rich (BB code):
		return $view->createTemplateObject($templateName, array(
			'showWysiwyg' => $showWysiwyg,
			'height' => $height,
			'formCtrlNameHtml' => $formCtrlNameHtml,
			'formCtrlName' => $formCtrlName,
			'editorId' => $editorId,

			'message' => $message,
			'messageHtml' => $messageHtml,

			'smilies' => ($showWysiwyg ? self::getEditorSmilies() : array()),

			'editorOptions' => $editorOptions,
The forum record is not there. It would have to be added.

Or create a new style and assign it to the forum in question.


Well-known member
Okay. What do you mean by "create a new style and assign it to the forum in question"?


Well-known member
I understand that, what I meant is how would I use that for the conditional.