2amigos / yiiwheels

Widget extension library for the YiiStrap extension
http://yiiwheels.2amigos.us
Other
133 stars 77 forks source link

Redactor does not work with ActiveForm #62

Closed alegbebomby closed 10 years ago

alegbebomby commented 10 years ago

WhRedactor does not work with ActiveForm, if it does help me out thanks

tonydspaniard commented 10 years ago

It does but on submit... If you attribute is not set, check the rules on the model. If it is not on the rules, it hardly will be set.

tonydspaniard commented 10 years ago

Closing this issue as there are no more feedback. Reopen if the problem continues.

st4nny commented 8 years ago

Hi, I try to set the field but when I submit the form the attribute and value are not shown in POST array. I tested the following lines: <?php $this->widget('yiiwheels.widgets.redactor.WhRedactor', array( 'model'=>$model ,'attribute' => 'desc' ,'pluginOptions'=>array( 'linebreaks'=>true ,'minHeight' => 150 ) )); ?> <?php // echo TbHtml::customActiveControlGroup($desc_string, $model, 'desc'); ?> <?php // echo $form->customControlGroup($desc_string, $model, 'desc'); ?> <?php // echo $form->textArea($model, 'desc'); ?>

and also I try to set the widget as string and to output with customActive/ControlGroup and however the value/attribute is not shown in post array. The attribute is correctly set in the rules model's in fact with "$form->textArea($model, 'desc')" the value is shown in post array and saved.

Any help? Thanks.