Duplicate ACP CSS for Custom BB Codes

John L.

Well-known member
It appears that the editor template in the ACP uses the CSS public:editor_ui.css. The public:editor_ui.css template requires a parameter customBbCodes. In the public area, customBbCodes is injected into the template parameters in /library/XenForo/CssOutput.php. Below are all of the template parameters that get injected:

displayStyles
smilieSprites
customBbCodes
xenOptions
dir
pageIsRtl

In the ACP, instead of CssOutput.php /library/XenForo/ViewAdmin/CssInternal.php is used. It appears that the customBbCodes has not been injected in this file, like it was in the public version. Below is what is injected:

displayStyles
smilieSprites
xenOptions
dir
pageIsRtl

It appears this section of code is supposed to do the same thing, since all of the other template parameters are there. Considering custom BB codes is a new feature, I would assume it was just forgotten about.

We use the WYSIWYG editor in the ACP for our add-on and would appreciate it if the customBbCodes template parameter could be added so the public:editor_ui.css template could be called without error.

We basically need this line added after line 21 in /library/XenForo/ViewAdmin/CssInternal.php

Code:
'customBbCodes' => array(),
 
Top Bottom