yiiwheels icon indicating copy to clipboard operation
yiiwheels copied to clipboard

Redactor does not work with ActiveForm

Open st4nny opened this issue 9 years ago • 0 comments

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:

widget('yiiwheels.widgets.redactor.WhRedactor', array( 'model'=>$model ,'attribute' => 'desc' ,'pluginOptions'=>array( 'linebreaks'=>true ,'minHeight' => 150 ) )); ?> customControlGroup($desc_string, $model, 'desc'); ?> 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.

st4nny avatar Aug 26 '15 15:08 st4nny