The new form API was missing the textarea hook which enabled textarea editors.

CommentFileSizeAuthor
textarea_1.patch1.64 KBccourtne
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chx’s picture

Status: Needs review » Closed (works as designed)

Use hook_form_alter instead.

ccourtne’s picture

Status: Closed (works as designed) » Active

hook_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.

drewish’s picture

hook_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?

chx’s picture

Status: Active » Closed (duplicate)