#47617 closed defect (bug) (invalid)
Using wp_editor in {$taxonomy}_edit_form_fields not working
| Reported by: | flyonthenet.com | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | TinyMCE | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
Consider this simple piece of code:
function test_form_fields( ) {
echo '<tr class="form-field term-description-wrap"><th scope="row">Snippet</th><td>';
wp_editor( 'TEST', 'snippet', array(
'textarea_name' => 'snippet'
));
echo '</td></tr>';
}
add_action( 'category_add_form_fields', 'test_form_fields');
add_action( 'category_edit_form_fields', 'test_form_fields');
It's expected to show a functional TinyMCE editor, but something weird is rendered, seems mixed up with description field.
- Content not displayed (empty tinyMCE)
- No toolbar rendered
- No textarea tag with id "snippet" in source code
- Media / Visual / Text are applied to description field
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)

Replying to flyonthenet.com:
term-description-wrap class is causing the problem