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.

PHP:
// 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
 
Upvote 0
This suggestion has been implemented. Votes are no longer accepted.
Top Bottom