Validation for TinyMCE extension not working

Hi,

I have a page_content field on one of my form that is required for which i am using TinyMCE widget. All the required fields on the form are being AJAX validated except for the TinyMCE widget. Can anyone kindly suggest me a solution for this problem?

Thank you.




 <?php

    $form = $this->beginWidget('CActiveForm', array(

                'id' => 'pageForm',

                'enableAjaxValidation' => true,

            ));

    ?>

   .....


    <?php echo $form->labelEx($page, 'page_content'); ?>

    <?php

    $this->beginWidget('application.extensions.tinymce.ETinyMce', array('name'=>'html','editorTemplate'=>'full','contentCSS'=> Yii::app()->theme->baseUrl . '/css/custom-tinymce.css', 'model'=> $page, 'attribute' => 'page_content', 'plugins' =>array('template'),//'spellchecker',

'options'=>array('theme_advanced_buttons1'=>'formatselect,bold,italic,underline,strikethrough,|,sub,sup,|,visualchars,visualaid,|justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist',//,spellchecker

'theme_advanced_buttons2'=>'outdent,indent,|,hr,image,|,link,unlink,|,tablecontrols,template,|,help',

'theme_advanced_buttons3'=>'',

'theme_advanced_buttons4'=>'','extended_valid_elements'=>'class'))); 

    ?>

    <?php $this->endWidget(); ?>

    <?php echo $form->error($page, 'page_content'); ?>


...


  <?php $this->endWidget(); ?>