title: Yii2: Using TinyMCE into Kartik's DetailView with custom settings
body: <p>I'd like to insert 2amigos' TinyMCE widget in Kartik's DetailView edit mode. This is what I got by now:</p>
  
  <pre><code>       [
             'attribute' =&gt; 'myAttribute',
             'format' =&gt; 'raw',
             'type' =&gt; 'widget',
             'widgetOptions' =&gt; ['class' =&gt; TinyMce::classname()],
             'value' =&gt; $model-&gt;myAttribute,
          ], 
  </code></pre>
  
  <p>With this chunk I managed to show TinyMCE editor with default settings. What I'm trying to do now is to show it with custom settings defined by:</p>
  
  <p><code>Yii::$app-&gt;params['myTinyMceParams']</code></p>
  
  <p>In form I'm doing this:</p>
  
  <p><code>&lt;?= $form-&gt;field($model, 'myAttribute')-&gt;widget(TinyMce::className(), Yii::$app-&gt;params['myTinyMceParams']) ?&gt;</code></p>
  
  <p>Any ideas?</p>