Hey guys, I’m having some weird issues with CJuiTabs. No matter how I render the tabs I’m not getting what I want.
[list=1]
[*]If I just use “true” in my renderPartial all the tabs textareas are using my javascript for tiny_mce, but in all the tabs other than the initial one, my html options are not working (i.e. ‘rows’=>5, ‘cols’=>80)
[*]If I use “true, true” my text areas use the configured html settings are working (i.e. ‘rows’=>5, ‘cols’=>80), but my tiny_mce script is not working for any textareas. I tried putting the javascript in each renderPartial page, but that did’t work.
[/list]
<?php
$tab_array['General'] = $this->renderPartial('_general', array('model'=>$model, 'form'=>$form),true,true);
$tab_array['Rules'] = $this->renderPartial('_rules', array('model'=>$model, 'form'=>$form),true,true);
$tab_array['FAQ'] = $this->renderPartial('_faq', array('model'=>$model, 'form'=>$form),true,true);
$tab_array['Rewards'] = $this->renderPartial('_rewards', array('model'=>$model, 'form'=>$form),true,true);
$tab_array['Registration'] = $this->renderPartial('_registration', array('model'=>$model, 'form'=>$form),true,true);
$tab_array['Participants'] = 'Under development!';
$this->widget('zii.widgets.jui.CJuiTabs', array(
'tabs'=>$tab_array,
'options' => array(
//'select' =>'Rules',
),
));
?>
What am I doing wrong?