The second parameter to wp_editor
is the value that the “id” attribute of the textarea element will have, and that is probably why there are such restrictions on it. By default it is also used for the “name” attribute but you can set it explicitly by using the $settings
parameter to wp_editor
wp_editor($ID, 'media_desc_n',array('textarea_name' => 'media_desc[n]'));