So I have found several posts on this support forum and other places on how to place the editor on my plugin, but I still have an issue with the visual/html toggle buttons. They are there and they work, but it appears the CSS is not working for them.
I have tested to see what css file is controlling them, but I have come up short handed.
Here is my code so it helps someone diagnose this...
add_filter('admin_head','show_tinyMCE');
function show_tinyMCE() {
// conditions here
wp_enqueue_script( 'common' );
wp_enqueue_script( 'jquery-color' );
wp_print_scripts('editor');
if (function_exists('add_thickbox')) add_thickbox();
wp_print_scripts('media-upload');
if (function_exists('wp_tiny_mce')) wp_tiny_mce();
wp_admin_css();
wp_enqueue_script('utils');
do_action("admin_print_styles-post-php");
do_action('admin_print_styles');
remove_all_filters('mce_external_plugins');
}
and then where i display it i have
<div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea">
<?php the_editor($msgblock,'content','content', false); ?>
<?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
<?php wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?>
</div>