Hello,

I am the author of the Drigg module ( http://drupal.org/project/drigg ).

I have just received this:

http://drupal.org/node/206880

Now... before I spend the next week figuring this out, do you have any pointers for me?
In Drigg's code, I have:

  $form['title'] = array(
    '#type' => 'textfield',
    '#title' => t('Story\'s title'),
    '#size' => 60,
    '#maxlength' => 128,
    '#required' => TRUE,
    '#weight' => -7,
    '#default_value' => $node->title);

  $form['body'] = array(
    '#type' => 'textarea',
    '#title' => t('Story\'s description'),
    '#default_value' => $node->body,
    '#weight' => -6,
    '#required' => FALSE );

Am I doing something sillily lame?

Thanks in advance for any help,

Merc.

Comments

mercmobily’s picture

Title: Help a fellow module developer » Help a fellow module developer: help getting Fckeditor to work with Drigg

Hi,

Fixed title - sorry.

Merc.

jadwigo’s picture

fckeditor usually ignores textareas of five lines or less - which is the default. If you set the rows to more than five it should work

  $form['body'] = array(
    '#type' => 'textarea',
    '#title' => t('Story\'s description'),
    '#default_value' => $node->body,
    '#rows' => 6,
    '#weight' => -6,
    '#required' => FALSE );
wwalc’s picture

Status: Active » Closed (fixed)

Ok, mwille solved it by himself - just like jadwigo wrote, it was the problem with configuring FCKeditor correctly.

http://drupal.org/node/206880

The Fckeditor module has an option to deactivate the editor if the textarea has less than x lines. Mine was set to 5. So I guess the story description area is just a little small.

mercmobily’s picture

Hi,

Thank you!

Merc.