title: AJAX fails using textarea and CKeditor widgets of yii2
body: <p>following code will implement AJAX-Request as intended. Curiously, it's only working with yii2-method textinput(). Using yii2-method textarea() or even widget CKEditor doesn't work- Any ideas how to use AJAX-Request with more comfortable methods but textinput()?
  Here is Controllercode:</p>
  
  <pre><code>&lt;?php
  
  namespace frontend\controllers;
  
  use Yii;
  use yii\helpers\Json;
  use backend\modules\app_einstellung\models\Textbaustein;
  use yii\web\Controller;
  
  class TextbausteinController extends Controller {
  
      public function actionBaustein($textId) {
          $text = Textbaustein::findOne($textId);
          echo Json::encode($text);
      }
  
  }
  </code></pre>
  
  <p>Here is JQueryCode:</p>
  
  <pre><code>&lt;?=
  Dialog::widget();
  
  $script = &lt;&lt;&lt; JS
          $('#bez').change(function(){
          var textId=$(this).val();
          $.get('textbaustein/baustein',{textId:textId},function(data){
     var data=$.parseJSON(data);
    krajeeDialog.alert('Fügen Sie eventuell  erzeugte Mailvorlagen manuell(Copy&amp;Paste) in Ihren Maileditor ein');
     $('#mailausgang-inhalt').attr('value',data.inhalt);
     });
          });
  
  JS;
  
  $this-&gt;registerJS($script);
  ?&gt;
  </code></pre>
  
  <p>Following elements don't work with AJAX! Why??</p>
  
  <pre><code>   //echo $form-&gt;field($model, 'bodytext')-&gt;textarea();
  /* echo $form-&gt;field($model, 'bodytext')-&gt;widget(\dosamigos\ckeditor\CKEditor::className(), [
   'preset' =&gt; 'full', 'clientOptions' =&gt; ['height' =&gt; 200],
     ]); */
  </code></pre>
  
  <p>Only this element works with AJAX! Why only this??</p>
  
  <pre><code>    &lt;div class="col-md-6"&gt;
          &lt;?=
          $form-&gt;field($modelTextbaustein, 'bezeichnung', ['addon' =&gt; [
                  'prepend' =&gt; ['content' =&gt; 'Mailvorlagen']]])-&gt;widget(\kartik\widgets\Select2::classname(), [
              'data' =&gt; \yii\helpers\ArrayHelper::map(Textbaustein::find()-&gt;orderBy('bezeichnung')-&gt;asArray()-&gt;all(), 'id', 'bezeichnung'),
              'options' =&gt; [
                  'id' =&gt; 'bez'
              ],
              'pluginOptions' =&gt; [
                  'allowClear' =&gt; true
              ],
          ]);
          ?&gt;
      &lt;/div&gt;
  
      works only with this:
      &lt;?php    
           echo $form-&gt;field($model, 'bodytext', ['addon' =&gt; [
                          'prepend' =&gt; ['content' =&gt; 'Vorlage']]])-&gt;widget(TwbsMaxlength::className())
                  -&gt;textInput();
  </code></pre>
  
  <p>Rephrasing question:</p>
  
  <p>As I think to attach an event handler on keypress event, in which fire the Ajax call only when the key is ENTER I coded like this but didn't succeed with it:</p>
  
  <pre><code>$script = &lt;&lt;&lt; JS
  $('#bez').keypress(function(e){
      if(e.which == 13) {
          var textId=$(this).val();
          $.get('textbaustein/baustein',{textId:textId},function(data){
              var data=$.parseJSON(data);
              $('#mailausgang-inhalt').attr('value',data.inhalt);
          });
      }
  });
  </code></pre>