change length and wrap of textarea
Janam - July 6, 2009 - 00:50
| Project: | Facebook-style Statuses (Microblog) |
| Version: | 6.x-2.0-rc1 |
| Component: | Code - Functionality |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Hi,
I would like to be able to make the textarea box longer (right now it's only 2 rows long). I know I'm not supposed to mess with the module, but where in the module can I find the code to do this?
Also, is there any way to create a hard wrap, so that when the text exceeds the length of textarea, there's a linebreak instead of a scrollbar?

#1
In RC1 change line 918 to the number of rows you want:
'#rows' => 2,Technically, it's more correct to do this with a hook_form_alter() in a custom module for your site--that way, you don't have to change the module every time you upgrade.
The only way to do auto-expanding textareas at this time, apart from writing code manually to do it, is to use other modules. The current contenders are Textarea Expander and Resizable Body, although the former takes a poor approach and the latter needs some custom code to make it apply to the facebook_status update form.
#2
Automatically closed -- issue fixed for 2 weeks with no activity.