Closed (outdated)
Project:
TinyMCE
Version:
5.x-1.9
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Nov 2007 at 04:06 UTC
Updated:
14 Jan 2021 at 19:37 UTC
Jump to comment: Most recent
Comments
Comment #1
voidengine commentedI don't know how to enable dynamic horizontal resizing using javascript, but I was able to make the text areas wider by using hook_form_alter() in a custom module:
Comment #2
physiotek commentedcan you explain how i do a cutom module please?
pht3k
Comment #3
voidengine commentedpht3k,
Just like the template.php file for themes, think of modules as another place where you can put code that alters how your website works.
The handbook page is here: http://drupal.org/node/508
I learned how to do it by reading this: http://www.drupalbook.com/
Quick Summary
Here is the code in my myformedits.info file:
And the code in the myformedits.module file is listed above.
To alter forms you should read up on Forms API: http://drupal.org/node/37775
I learned a lot by reading the Pro Drupal Development book (link is above)
Good luck!
Ray
Comment #4
physiotek commentedthanks voidengine,
i will try to create a custom module after the holidays.
this looks like very interesting links
thanks a lot.
pht3k
Comment #5
GabiAPF commentedI need to change the height of the textarea. I tried the suggestion on comment 1: http://drupal.org/node/195603#comment-650837 (even changed the number of rows to 40) but the textarea didn't grow at all. The writeable space is still 78px heigh, which is too short for my needs? Is there any way to change that? Why didn't that work?
Comment #6
mupsi