At the moment form_alter implementation in htmlarea expects #parent to be set for #tree => TRUE widgets. This has failings for two reasons. First, the Form API element for parents is actually #parents. Second, #parents is generated in the form_build() stage of form generation, which happens to be _after_ form_alter hooks are called. As a result #parents is never set.
I've patched the form_alter implementation to take a third optional argument: an array of parents. This will allow #tree widgets to have WYSIWYG textareas.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | htmlarea_20061009_1557_tree_patch.txt | 1.39 KB | sammys |
| htmlarea_20061008_1247_tree_patch.txt | 1.19 KB | sammys |
Comments
Comment #1
sammys commentedOk... the patch I submitted before broke the non-tree textareas. Here is an updated version which works for both.
Comment #2
gordon commentedThanks
Comment #3
(not verified) commented