//Global TinyMCE configuration for Cartella
var tinymceConfig = {
    mode : "textareas",
    theme : "advanced",
    theme_advanced_buttons1:"cut, copy, paste, separator, bold, italic, underline, separator, bullist, numlist, indent, outdent, separator, justifyleft, justifycenter, justifyright, separator, forecolor, link, image, media",
    theme_advanced_buttons2:"",
    theme_advanced_buttons3:"",
    theme_advanced_toolbar_location : "top",
    theme_advanced_toolbar_align : "left",
    theme_advanced_path : false,
    theme_advanced_path_location : "bottom",                    
    extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style],p[lang]",
    external_link_list_url : "tinymce/examples/example_link_list.js",
    external_image_list_url : "tinymce/examples/example_image_list.js",
    flash_external_list_url : "tinymce/examples/example_flash_list.js",
    template_external_list_url : "tinymce/examples/example_template_list.js",
    theme_advanced_resizing : false,
   /* convert all <font> tags to spans */
    convert_fonts_to_spans : true,
    font_size_style_values : "xx-small,x-small,small,medium,large,x-large,xx-large",
    apply_source_formatting : true,
    spellchecker_languages : "+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv",
    /* use native select boxes, to avoid some bugs in IE with TinyMCE's select boxes. */
    use_native_selects: true,
    forced_root_block: '',
    plugins: "safari,media,inlinepopups,contextmenu"
};

tinyMCE.init(tinymceConfig);