[drupal-devel] [feature] 2 additional hooks to form_textarea to support module writers who are extending it.

Gordon Heydon gordon at heydon.com.au
Sun Mar 6 12:44:24 UTC 2005


Basically you use getElementByID or any of the other locater's, and then
do something like this.

obj.onclick = function () {


On Sun, 2005-03-06 at 12:32 +0000, Julian Bond wrote:
> Gordon Heydon <gordon at heydon.com.au> Sun, 6 Mar 2005 22:30:49
> >Please put this back on the drupal.org,
> Done
> I'll try another tack more appropriate for the mailing list.
> I want to add a row of buttons between the title and textarea
> I want to add 3 javascript handlers to the textarea. onClick, OnSelect 
> and onKeyUp.
> I can't see how to do this from javascript. Can you point me at an 
> example. I've found a few for DOM modification that point me at a way to 
> post the row of buttons by using getElementById and then insertBefore. 
> That's going to be fairly messy getting from a php function to the 
> javascript in 'post' to modifying the DOM to appearing on the screen. 
> But probably do-able.
> But I haven't been able to find anything that suggests how to add 
> handlers to an existing node.
> I suppose I could hide the whole shebang; Title, textarea, description 
> and then recreate it all in 'post'. But the hook doesn't get all the 
> parameters.
Gordon Heydon <gordon at heydon.com.au>

More information about the drupal-devel mailing list