Disable media upload in rich text editor

You simply set the parameter to false when you create the editor, which you do with a call to the_editor as follows:

<?php the_editor($customcontent, $id = 'CustomContent', $prev_id = 'title', $media_buttons = false, $tab_index = 2); ?>

The first parameter is the content that should be used to fill the editor when the page loads, it may come from a database on an edit page like $row[‘customcontent’] etc. The second is the id of the textarea, which will also be its name and go through into the $_POST array as the key. Then media_buttons = false is the one that tells it to add no buttons for adding media. Tab index is self explanatory.

You will also need the following to set up the text area:

 add_action('admin_print_scripts','prepare_editor');

function prepare_editor() {
   wp_enqueue_script('post');
    wp_enqueue_script('editor');
        wp_enqueue_script('utils');
        wp_enqueue_script('editor-functions');
        add_action('admin_head','wp_tiny_mce');
       wp_enqueue_script('thickbox');
        wp_admin_css('thickbox');
    wp_enqueue_script('word-count');
        //add_editor_style('style.css');  
}