Drupal 7 CKeditor always saves Array I am developing a custom module with some entities inside. I created a form to edit them and I would like to use CKEditor in one of the fields. 

I can see and use the CKEditor, but when it's time to save, it always saves the value 'Array'. You can find the code I am using below:

$form['description'] = array(
        '#type' =&gt; 'text_format',
        '#format' =&gt; 'full_html',
        '#title' =&gt; t('Content'),
        '#default_value' =&gt; $entity-&gt;content,
        '#weight' =&gt;2,
        '#required' =&gt; FALSE,
    );


I'd say CKEditor changes the value before sending the form POST but I am not sure. 

Any ideas?
Ok, that was easier than I thought. When using WYSIWYG editors you have to save the info differently.

For a normal textarea:

$entity-&gt;content = $form_state['values']['description']


For a WYSIWYG:

$entity-&gt;content = $form_state['values']['description']['value']