yii2 enableClientValidation not working with wysiwyg

Hi guys,

in model I set




public function rules()

{

    return [

        [['subject', 'content'], 'required']

    ];

}



and setting form :




$cowid = \Yii::$app->request->get('id');

 $model = new SendmailForm();

 $form  = ActiveForm::begin([

           'id'      => 'sendmail-form',

           'action' => '#',

           'enableClientValidation' => true,

           'validateOnSubmit' => true,

           'enableAjaxValidation' => false,

           'options' => [

                 'class'   => 'form-horizontal form-bordered',

              ],

            'fieldConfig' => [

                        'horizontalCssClasses' => [

                            'label' => 'control-label',

                        ],

                    ],

                ]); 



and textarea I used wysiwyg




<?=

     $form->field($model, 'content', [

          'template' => "<div class='col-md-3'>{label}</div><div class='col-md-9'>{input}</div>\n{hint}\n{error}",

           'selectors' => ['input' => '#textarea-wysiwyg']])

           ->textArea(['rows' => '6', 'class' => 'form-control textarea-editor', 'id' => 'textarea-wysiwyg'])



but it seems enableClientValidate is not working with wysiwyg

Could you guys please help me ?

Thanks in advance .