tinyMCE.init({
    mode : "textareas",
    theme : "advanced",
    width: "100%",
    height:"250",
    remove_trailing_nbsp : true,
    plugins : "safari,spellchecker,preview1,paste1",

    theme_advanced_buttons1 : "pasteword,spellchecker,charmap",
    theme_advanced_buttons2 : "",
    theme_advanced_buttons3 : "",
    theme_advanced_toolbar_location : "top",
    theme_advanced_toolbar_align : "left",
    extended_valid_elements : "a[name|href]",
    editor_deselector : "mceNoEditor",

		spellchecker_languages : "+English=en",

    // Example content CSS (should be your site CSS)
    // TODO Fixme Needs 1) Absolute CSS reference /css/main.css - 2) Formatting within the edit box
    content_css : "/css/tinymce_preview_article.css",

    plugin_insertdate_dateFormat : "%Y-%m-%d",
    plugin_insertdate_timeFormat : "%H:%M:%S",
    apply_source_formatting : true,
    fix_content_duplication : true,
    fix_list_elements : true,
    fix_table_elements : true,
    save_onsavecallback : "submitForm" ,

    gecko_spellcheck : true,
    spellchecker_rpc_url: '/spellcheck',
    convert_urls : false,

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

    paste_preprocess : function(pl, o) {
      o.content = StringUtils.stripUnsupportedMarkup(o.content);
    }
    
});

