var tmceConfig = {
    // Location of TinyMCE script
    script_url : '/js/tiny_mce/tiny_mce.js',

    // General options
    theme : "advanced",
    plugins : "style,layer,table,advhr,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups,advlist,youtube,advimage",

    // Theme options
    theme_advanced_buttons1 : "cleanup,removeformat,|,undo,redo,|,code,preview,|,iespell,|,print,|,fullscreen",
    theme_advanced_buttons2 : "styleselect,formatselect,fontselect,fontsizeselect,|,forecolor,backcolor",
    theme_advanced_buttons3 : "bold,italic,underline,strikethrough,|,hr,|,emotions,|,link,unlink,anchor,blockquote,image,media,youtube,|,insertdate,inserttime,charmap,nonbreaking,|,numlist,bullist,|,justifyleft,justifycenter,justifyright,justifyfull",
    theme_advanced_toolbar_location : "top",
    theme_advanced_toolbar_align : "left",
    theme_advanced_statusbar_location :false,
    theme_advanced_resizing : true,
    button_tile_map : true,
    fix_list_elements : true,
    force_p_newlines : true,
    force_br_newlines : false

// Example content CSS (should be your site CSS)
//content_css : "css/content.css",

// Drop lists for link/image/media/template dialogs
//template_external_list_url : "lists/template_list.js",
//external_link_list_url : "lists/link_list.js",
//external_image_list_url : "lists/image_list.js",
//media_external_list_url : "lists/media_list.js",

// Replace values for the template plugin
};
jQuery(document).ready(function($) {
    $('textarea.rte').tinymce(tmceConfig);
});

