[wp-trac] [WordPress Trac] #29864: Brackets in instance Name of wp_editor() breaks Tinymce

WordPress Trac noreply at wordpress.org
Sun Oct 5 10:10:22 UTC 2014


#29864: Brackets in instance Name of wp_editor() breaks Tinymce
--------------------------------------------+-----------------------------
 Reporter:  3cees                           |      Owner:
     Type:  defect (bug)                    |     Status:  new
 Priority:  normal                          |  Milestone:  Awaiting Review
Component:  TinyMCE                         |    Version:  4.0
 Severity:  normal                          |   Keywords:
  Focuses:  ui, javascript, administration  |
--------------------------------------------+-----------------------------
 If I a pass an array name for an editor ID , the editor gets only shown as
 "teeny".

 As described in the functions refrence:


 {{{
 textarea_name
 (string) (optional) The name assigned to the generated textarea and passed
 parameter when the form is submitted. (may include [] to pass data as
 array)
 Default: $editor_id
 }}}

 It should work.

 Here an example:

 {{{
 $editor_id = 'my_options[op_'.$pool["slug"].']';
 wp_editor( $content, $editor_id, array( "media_buttons" => FALSE,
 "textarea_rows" => 10, "teeny" => FALSE ) );

 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29864>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list