Rich Text Editor
------------------------------
You can get the editor HTML in your view through a helper
Code:
$this->_params['editorTemplate'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate(
$this, 'some_name', 'Initial content'
);
The parameters are:
1) The view calling the function ( eg. $this )
2) The name of the editor ( for the form )
3) (Optional) The initial content ( Usually something from $this->_params )
To put it in your template:
Code:
{xen:raw $editorTemplate}
To retrieve the input in the controller when saving:
Code:
$var = $this->getHelper( 'Editor' )->getMessageText( 'some_name', $this->_input );