Tinymce toolbar in php twig
<p>I use tinymce in my project, a blog made with slim and twig.
I had no problem to init the default tinymce script but when i add the code plugin in menu items the rest of the menu disappear.
the code that is working is:</p>

<pre><code> &lt;script&gt;tinymce.init({selector: '#content'});&lt;/script&gt;
</code></pre>

<p>and the view is this
<a href="https://i.stack.imgur.com/pMjUr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pMjUr.png" alt="enter image description here"></a></p>

<p>when i change it to this</p>

<pre><code>    &lt;script&gt;tinymce.init({
    selector: '#content',
    plugins: ["code"],
    toolbar: ["code"],
    menubar: ["tools"]
    });&lt;/script&gt;
</code></pre>

<p>The code plugin working but the old toolbar disappear </p>

<p><a href="https://i.stack.imgur.com/9ZdkH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9ZdkH.png" alt="enter image description here"></a></p>

<p>what i actually want to do is to keep the default toolbar and add at the end the code plugin, not to remove the default toolbar.</p>