title: SilverStripe Tinymce configuration not updating inside module
body: <p>We have a boilerplate module that we include on all of your SilverStripe builds. We are attempting to add a new class to our customised WYSIWYG config.</p>
  
  <p>The weird thing is that we have a module dedicated to this but as soon as we move this configuration out of that module and into the new module, the config reflects only a couple of the changes and not all.</p>
  
  <p>Example:</p>
  
  <p><strong>wysiwygboilerplate/_config.php</strong></p>
  
  <p><img src="https://i.stack.imgur.com/s9HTk.png" alt="enter image description here"></p>
  
  <p><strong>companyname-boilerplate/_config.php</strong>
  <img src="https://i.stack.imgur.com/XWyup.png" alt="enter image description here"></p>
  
  <p>The first example shows the correct wysiwyg configuration. When that same code is moved to the new location 'companyname-boilerplate/' directory it ceases to function. </p>
  
  <p>This is the snippet of code I am working with. (with the only update being the path to content css)</p>
  
  <pre><code>//-------------------------------------------- WYSIWYG config
  
  $defaultEditorConfig = HtmlEditorConfig::get('cms');
  $defaultEditorConfig-&gt;setOptions(
      array(
          'theme'                         =&gt; 'advanced',
          'priority'                      =&gt; 1,
          'browser_spellcheck'            =&gt; true,
          'body_class'                    =&gt; 'wysiwyg',
          'content_css'                   =&gt; '/companyname-boilerplate/styles/wysiwyg.css',
          'schema'                        =&gt; 'html5',
          'extended_valid_elements'       =&gt; 'figure,figcaption',
          'end_container_on_empty_block'  =&gt; true,
          'style_formats'                 =&gt; array(
              array(
                  'title'     =&gt; 'H1',
                  'block'     =&gt; 'h1'
              ),
              array(
                  'title'     =&gt; 'H2',
                  'block'     =&gt; 'h2'
              ),
              array(
                  'title'     =&gt; 'H3',
                  'block'     =&gt; 'h3'
              ),
              array(
                  'title'     =&gt; 'H4',
                  'block'     =&gt; 'h4'
              ),
              array(
                  'title'     =&gt; 'H5',
                  'block'     =&gt; 'h5'
              ),
              array(
                  'title'     =&gt; 'Paragraph',
                  'block'     =&gt; 'p'
              ),
              array(
                  'title'     =&gt; 'Blockquote',
                  'block'     =&gt; 'blockquote',
                  'wrapper'   =&gt; true
              ),
              array(
                  'title'     =&gt; 'Figure',
                  'block'     =&gt; 'figure',
                  'wrapper'   =&gt; true
              ),
              array(
                  'title'     =&gt; 'Figure caption',
                  'block'     =&gt; 'figcaption',
                  'wrapper'   =&gt; true
              )
          )
      )
  );
  
  $defaultEditorConfig-&gt;disablePlugins('contextmenu');
  $defaultEditorConfig-&gt;enablePlugins('lists', 'paste');
  $defaultEditorConfig-&gt;setButtonsForLine(1, 'styleselect, formatselect, separator, bold, italic, separator, justifyleft, justifycenter, justifyright, separator, bullist, numlist, separator, charmap, ssmedia, separator, sslink, unlink, separator, code');
  $defaultEditorConfig-&gt;setButtonsForLine(2);
  $defaultEditorConfig-&gt;setButtonsForLine(3);
  </code></pre>
  
  <p>My initial thoughts are that this is to do with the order SilverStripe is loading the configuration files, but there are no other files / modules that define a HtmlEditorConfig that I am aware of.</p>
  
  <p>The other thought I had was around caching, I cleared out the SilverStripe cache, my browser cache and even ran a dev/build with still no joy, so that rules out caching</p>