I can't get page_theme.php to load editor classes

Permalink
I have this:

1) A theme inside application/themes/mysitetheme

2) The following code inside application/themes/mysitetheme/page_theme.php:
<?php
namespace Application\Theme\Mysitetheme;
class PageTheme extends \Concrete\Core\Page\Theme\Theme {
   public function getThemeEditorClasses()
    {
        return array(
            array('title' => t('Heading 1'), 'menuClass' => '', 'spanClass' => 'h1'),
            array('title' => t('Heading 2'), 'menuClass' => '', 'spanClass' => 'h2'),
            array('title' => t('Heading 3'), 'menuClass' => '', 'spanClass' => 'h3'),
            array('title' => t('Heading 4'), 'menuClass' => '', 'spanClass' => 'h4'),
            array('title' => t('Heading 5'), 'menuClass' => '', 'spanClass' => 'h5'),
            array('title' => t('Quote'), 'menuClass' => '', 'spanClass' => 'blockquote')
        );
    }
}


Now Redactor doesn't show my custom classes. What am I missing? Should I reinstall the theme or something? Cache is cleared and everything.

VPenkov
 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi MoonGrab,

Redactor has a "formatting" toolbar button that includes h1 through h5, quote, code, and normal text. There is no need to add them as a custom style.

I tried your code and it works, so it must be something else.
VPenkov replied on at Permalink Reply
VPenkov
I know about the formatting but that doesn't answer my question in any way.
Thanks for the input, though I'm still not sure why it doesn't work with me.

I also do _not_ have a typography.css and those styles are not yet present in my CSS. Does concrete5 scan for those? It shouldn't do it because I haven't loaded my styles with getStyleSheet or something...

I was hoping someone would see a wrong character case or path but I guess I'm wrong.