• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Implemented XenForo_ViewPublic_Helper_Editor::getEditorTemplate() add $editorOptions to template params

Mike Tougeron

Well-known member
XenForo_ViewPublic_Helper_Editor::getEditorTemplate() takes a parameter called $editorOptions. Can you please assign that data to the template the method creates? This would allow me to programmatically pass variables from the ViewPublic classes to the editor template for customizing the display.

// Line 88 of library/XenForo/ViewPublic/Helper/Editor.php
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
Thanks, Mike