Add a editor in AdminCP

Fuhrmann

Well-known member
Is there a way to add an editor using wysiwyg in the Admin Control Panel?

I already tried this:

PHP:
$this->_params['additionalInfo'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate(
            $this, 'message','',
            array('editorId' =>    'ctrl_additional_info', 'height' => '150px', 'templateName' => 'editor')
        );
But when I {xen:raw} only appear a textarea. No controls, anything.
 
Thinking again - I don't exactly understand Fuhrmann.
Is this to edit things IN the admin area?
Or is it to add a WYSWYG editor to the frontend somewhere?
 
Thinking again - I don't exactly understand Fuhrmann.
Is this to edit things IN the admin area?
Or is it to add a WYSWYG editor to the frontend somewhere?

It is an editor like the 'reply to a thread' but in the admin area. It will be used in a addon to add additional information.
 
Anything is possible. You just need to find out how. You are trying to grab a public template from within the ACP, this might be your issue and you might just have to do the same stuff in the admin controllers? Just a guess.
 
Actually there is already the admin template of the editor. I'm using this:

PHP:
$this->_params['additionalInfo'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate(
            $this, 'message','',
            array('editorId' =>    'ctrl_additional_info', 'height' => '150px', 'templateName' => 'editor')
        );

And then in the admin template this:

Code:
{xen:raw $additionalInfo}

But this only show me a simple text area.
 
Top Bottom