Quote:
Originally Posted by Sworm
I'm using this one for all the custom BBcodes in QR and QE:
Hook: editor_construct
Code:
if ($this->editor_type == 'qr' || $this->editor_type == 'qe')
{
$this->addCustomToolbarButtons();
}
and this one to add "code" - "php" - "html" in the Quick Reply/Edit
Hook: editor_toolbar_filter
Code:
if ($this->editor_type == 'qr' || $this->editor_type == 'qe')
{
$toolbar[] = array('Code', 'Html', 'Php');
}
They working for me.
|
Wow, that worked perfect! Thank you!
The only problem I have is, the PHP, HTML, and Code BBcodes show up twice in the Quick Reply Box. And I only have the first plugin active, when I have both plugins active, the PHP/HTML/Code BBCodes show up 3 times. Without the second plugin active, they show up twice.
Here is a screenshot: