title: using ES6, import tinymce as npm package
body: <p>I have installed tinymce as package in my project using <a href="https://www.tinymce.com/docs/get-started/advanced-install/#packagemanagerinstalloptions" rel="nofollow">this tutorial</a>.</p>
  
  <p>I'm trying to <code>import</code> tinymce into my project. It does something (hides my <code>textarea</code>, expected behaviour) when I call <code>init()</code>, but it does not show me the <em>wysiwyg</em> editor.</p>
  
  <p>If I include the url in my html file it works, but that's not what I want, because I don't include my custom component every time the page gets loaded. The script tag would be overkill for some users.</p>
  
  <hr>
  
  <p>I want to import tinymce like this (or simular):</p>
  
  <pre><code>import 'tinymce';
  </code></pre>
  
  <p>and use it like this:</p>
  
  <pre><code>constructor(){
    tinymce.init({
      selector: "#mytextarea"
    })
  }
  </code></pre>
  
  <p>This does not give me any error, and it hides the textarea, but it does not build a <em>wysiwyg</em> editor.</p>
  
  <hr>
  
  <p>The only thing working so far:</p>
  
  <pre><code>&lt;script src="/path/to/tinymce.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <hr>
  
  <p>I prefer not to edit the JavaScript file, because that would break on updates. If it is the only way though, I'll simply have to.</p>
  
  <p>How can I import the library into my ES6 module?</p>