Saving the content from a Textarea dont works An Textfield within my Custom Content Pane works fine.

An Textarea incl. input-filter ('#type' => 'text_format',) will not be saved.

&lt;?php
  function text_edit_form($form, &amp;$form_state) {
      $conf = $form_state['conf'];

      $form['form_text'] = array(
        '#type' =&gt; 'text_format',
        '#title' =&gt; t('Text'),
        '#format' =&gt; 'filtered_html',
        '#size' =&gt; 50,
        '#resizeable' =&gt; TRUE,
        '#default_value' =&gt; !empty($conf['form_text']) ? $conf['form_text'] : '',
      );

      return $form;
    } 
  function text_edit_form_submit($form, &amp;$form_state) {
    foreach (array('form_text') as $key) {
      $form_state['conf'][$key] = $form_state['values'][$key];
    }
  }
?&gt;


At drupal.com somebody wrotes, that #default_value expect and string, but text_format is an array. So he postet the following solution.

But how can I build that within my hook_edit_form?

&lt;?php
      // Retrieve the default values for 'value' and 'format', if not readily
      // available through other means:
      $defaults = array(
        'value' =&gt; '',
        'format' =&gt; filter_default_format(),
      );
      $my_richtext_field = variable_get('my_richtext_field', $defaults);
      // Just construct a regular #type 'text_format' form element:
      $form['my_richtext_field'] = array(
        '#type' =&gt; 'text_format',
        '#title' =&gt; t('My richtext field'),
        '#default_value' =&gt; $my_richtext_field['value'],
        '#format' =&gt; $my_richtext_field['format'],
      );
 ?&gt;


Who can help me with that?
Solved!

I just rebuild the save-stuff:

&lt;?php
function text_edit_form_submit($form, &amp;$form_state) {
  $form_state['conf']['form_text'] = $form_state['values']['form_text']['value'];
}
?&gt;