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

Duplicate ACP CSS for Custom BB Codes

Discussion in 'Resolved Bug Reports' started by John L., Feb 17, 2014.

  1. John L.

    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(),
     
  2. Mike

    Mike XenForo Developer Staff Member

  3. John L.

    John L. Well-Known Member

    Sorry about that @Mike thanks!
     

Share This Page