Closed (duplicate)
Project:
Drupal core
Version:
x.y.z
Component:
base system
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Oct 2005 at 18:42 UTC
Updated:
27 Nov 2005 at 09:49 UTC
The new form API was missing the textarea hook which enabled textarea editors.
| Comment | File | Size | Author |
|---|---|---|---|
| textarea_1.patch | 1.64 KB | ccourtne |
Comments
Comment #1
chx commentedUse hook_form_alter instead.
Comment #2
ccourtne commentedhook_form_alter is not appropriate for what the textarea hook was doing. Most if not all of thw wysiwyg editors require the name and id of the textarea in order to initiailize the editor. When hook_form_alter is called neither the #name or #id properties are set nor are the #parents set in order for the module to calculate what the name/id will be.
Comment #3
drewish commentedhook_form_alter now passes two parameters, the form id and the form array. I know that htmlarea is using the hook. Does that work for you too?
Comment #4
chx commentedhttp://drupal.org/node/38038