Hello All,
I have applied required validation to tinymce but even after inserting value and submitting form it gives validation error to insert value.
array(‘news_description’, ‘required’),
<?php $this->widget(‘application.extensions.tinymce.ETinyMce’,
array(
'name'=>'news_description',
'id'=>'news_description',
'useSwitch' => false,
'editorTemplate'=>'full',
'value' => $model->news_description
)
);
?>
Can anybody help me.
kiran123
(Sharmakiran71)
2
I think problem with your name field,
I used tinymce much time before, currently i use editMe extension and i pass name field as
$this->widget('ext.editMe.ExtEditMe', array(
'name'=>'Page[page_content]', // Page is model, page_content is field
..
Hello All,
Problem solved.
please use below code.
<?php $this->widget(‘application.extensions.tinymce.ETinyMce’,
array(
'model'=>$model,
'attribute'=>'news_description',
'useSwitch' => false,
'editorTemplate'=>'full',
'value' => $model->news_description
)
);
?>