Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: chx commentedUse hook_form_alter instead.
Comment #2
ccourtne CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: chx commentedhttp://drupal.org/node/38038