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

Add a editor in AdminCP

Fuhrmann

Well-known member
#1
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.
 

Morgain

Well-known member
#4
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?
 

Fuhrmann

Well-known member
#5
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.
 

Robbo

Well-known member
#6
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.
 

Fuhrmann

Well-known member
#8
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.