[RSS Feed/News] Parse custom BBCode in EditorHtml (can't add new tags...)

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Hello,

I made a BBCode, and I would like it to be parsed in the WYSIWYG editor.

I made a class extension :
Code:

Code:
class EditorHtml extends XFCP_EditorHtml
{

    public function addDefaultTags()
    {

        parent::addDefaultTags();

        $this->addTag('fa', [
            'callback' => 'renderTagFA',
        ]);

    }

    public function renderTagFA(array $children, $option, array $tag, array $options)
    {
        return 'This is a test...';
    }


}

The method...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom