1. 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

Discussion in 'Closed Suggestions' started by Mike Tougeron, Oct 11, 2011.

  1. Mike Tougeron

    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
  2. Kier

    Kier XenForo Developer Staff Member

    The8thLegion likes this.
  3. Mike Tougeron

    Mike Tougeron Well-Known Member

Share This Page