#28079 closed defect (bug) (worksforme)
#27601 breaks using wp_editor for saving text fields
| Reported by: | varun21 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Editor | Version: | 3.9 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
The bugfix #27601 breaks the ability to use wp_editor for saving textarea in theme/plugin settings
name="mychildtheme[textareaname]" doesn't work since id can't have the [brackets] and the textarea name is derived from the id.
Change History (6)
#3
@
12 years ago
Related: comment:28:ticket:26778
#5
in reply to: ↑ 1
;
follow-up:
↓ 6
@
12 years ago
- Resolution → wontfix
- Status new → closed
Replying to ocean90:
You have to define
textarea_namein $settings for wp_editor(), see _WP_Editor:: parse_settings().
If I set the textarea_name, it alos does not work.
Example:
$editor_id = 'my_options[op_'.$pool["slug"].']'; wp_editor( $content, $editor_id, array( "media_buttons" => FALSE, "textarea_rows" => 10, "teeny" => FALSE, 'textarea_name' => $editor_id ) );
#6
in reply to: ↑ 5
@
12 years ago
- Keywords close removed
- Milestone Awaiting Review
- Resolution wontfix → worksforme
Replying to 3cees:
The default value of textarea_name is already the ID of the editor. You have to define an editor ID without brackets and use your ID with brackets for textarea_name.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
You have to define
textarea_namein $settings for wp_editor(), see _WP_Editor:: parse_settings().