[drupal-devel] Textarea editor hooks

Julian Bond julian_bond at voidstar.com
Mon Jan 17 10:31:41 UTC 2005


I've just launched a new drupal site at http://www.bikeweb.com using 4.5 
As part of this I wanted to include my minimalist html editor. It's all 
worked but I had to hack common.inc slightly. So here's a couple of 
suggestions for making extending form_textarea() easier.

1. Textarea, pre really needs to be between the title and textarea of 
the form_item. textarea extensions are very likely to add a toolbar and 
this really ought to be hard against the top of the textarea rather than 
floating above the title.

2. I need a way of adding extra $attributes as part of the module code 
and can't see an easy way of doing this without making $attributes 
global. Suggestions?

-- 
Julian Bond Email&MSM: julian.bond at voidstar.com
Webmaster:                 http://www.ecademy.com/
Personal WebLog:          http://www.voidstar.com/
M: +44 (0)77 5907 2173      T: +44 (0)192 0412 433
S: callto://julian.bond/



More information about the drupal-devel mailing list