How to disable resizable textarea in Drupal?

This Comment will be submitted for moderation and will not be accessible to other users until it has been approved.


Putting following code in template.php does that.

function phptemplate_textarea($element)
{
$element['#resizable'] = false ;
return theme_textarea($element) ;
}

                                     
0 points

Hi,
You need a little more than this, with CSS3 capable browsers becomming more common. The "textarea" element is CSS "resizable" by default. Ever asked yourself where the "corner grippy" came from?
Disable CSS resizing with:
textarea{
resize: none;
}

Regards,

Beddengoed

Anonymous's picture
Created by Anonymous
-21 points

Your solution is fine for D5 but in D6 it compleely removes the body text area.

Anonymous's picture
Created by Anonymous

Post Comment

  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.