title: Wicket 7 with wicketstuff tinymce4 Can't load language
body: <p>I'm running Wicket 7.5.0 and wicketstuff-tinymcr with the same version.</p>
  
  <p>Im trying to initialize a tinyMce editor but I get this error:
  Failed to load:
  <a href="http://localhost:8080/mywebapp/wicket/resource/wicket.contrib.tinymce4.TinyMceBehavior/tinymce/langs/sv.js" rel="nofollow noreferrer">http://localhost:8080/mywebapp/wicket/resource/wicket.contrib.tinymce4.TinyMceBehavior/tinymce/langs/sv.js</a></p>
  
  <p>The tiny script is loaded though:</p>
  
  <p><a href="http://localhost:8080/mywebapp/wicket/resource/wicket.contrib.tinymce4.TinyMceBehavior/tinymce/tinymce-ver-1481290207000.js" rel="nofollow noreferrer">http://localhost:8080/mywebapp/wicket/resource/wicket.contrib.tinymce4.TinyMceBehavior/tinymce/tinymce-ver-1481290207000.js</a></p>
  
  <p>This seems to be loaded:</p>
  
  <p>plugins/...</p>
  
  <p>themes/...</p>
  
  <p>./tinymce-ver-1481290207000.js</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>This took care of it:</p>
  
  <p>addCustomSetting("language: \"sv_SE\"");</p>
  
  <p>This are the classes that loads it all:</p>
  
  <pre><code>  import wicket.contrib.tinymce4.settings.TinyMCESettings;
  
    public class MyTinyMCESettings extends TinyMCESettings {
  
       public MyTinyMCESettings(TinyMCESettings.Theme theme) {
          super(theme);
          addCustomSetting("plugins: 'autoresize'");
          addCustomSetting("language: \"sv_SE\""); // this works
       }
  }
  </code></pre>
  
  <p>The other one:</p>
  
  <pre><code>import org.apache.wicket.Component;
  import wicket.contrib.tinymce4.TinyMceBehavior;
  import wicket.contrib.tinymce4.settings.TinyMCESettings;
  
  public class MyTinyMceBehavior extends TinyMceBehavior {
      public static final String KEY_EVENT = "keyup";
      private Component component;
      private TinyMCESettings settings;
  
      public MyTinyMceBehavior(TinyMCESettings settings) {
          super(settings);
          this.settings = settings;
      }
  
      @Override
      protected String getScript(TinyMCESettings.Mode mode, Collection&lt;Component&gt; components) {
          StringBuilder script = new StringBuilder();
  
          script.append(" tinyMCE.init({")
                  .append(settings.toJavaScript(mode, components))
                  .append(",onchange_callback : function (ed) {\n" +
                          "  var text = ed.getContent();" +
                          "  $('#" + component.getMarkupId() + "').html(text).trigger('" + KEY_EVENT + "');" +
                          "}")
                  .append("});\n");
  
          return script.toString();
      }
  
  }
  </code></pre>