wpeditor issue – shows both mode and not able to focus/edit during visual mode

There are a few ways you can go about adding a wpeditor to text areas.

  1. If you have the id value of the textbox you can use this JavaScript command to add the tinyMCE buttons to it dynamically.

tinyMCE.execCommand('mceAddControl', false, 'textbox_id');

  1. In your functions.php, add this code:

add_action( 'edit_page_form', 'mytextarea_for_page' );
function mytextarea_for_page() {
wp_editor( ' ', 'the_xyz' );
}

Replace the_xyz with the name of the textarea. The above code is for Add New PAGE. The below code is for the Add New POST:

add_action( 'edit_form_advanced', 'mytextarea_for_post' );
function mytextarea_for_post() {
wp_editor( ' ', 'the_xyz' );
}

In both cases, replace the_xyz with the name attribute of the textarea.

There are many more different ways to do this at http://wpquestions.com/question/showChrono/id/7818