tinyMCE.init({
    safari_warning : true,
    verify_html : true,
    preformatted : false,
    convert_fonts_to_styles : true,
    cleanup_on_startup : true,
    mode : "textareas",
    theme : "advanced",
    docs_language : "sv",
    theme_advanced_buttons1 : "cut,copy,paste,pasteword,separator,undo,redo,separator,charmap,link,unlink,image,separator,code,backcolor,forecolor",
    theme_advanced_buttons2 : "formatselect,bold,italic,underline,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,separator",
    theme_advanced_buttons3 : "tablecontrols",
    theme_advanced_toolbar_location : "top",
    theme_advanced_toolbar_align : "left",
    media_use_script : false,
    plugins : "media,table,paste",
    theme_advanced_buttons1_add : "media",
    valid_elements : "*[*]",
    //extended_valid_elements : "div[*],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],object[classid|codebasewidth|height|type|data],param[name|value],embed[src|quality|type|wmode|width|height|pluginspage|bgcolor],table[*],tr,th,td,tbody,tfoot",
    editor_selector : "mceEditor",
    remove_script_host : true,
    entity_encoding : "raw",
    document_base_url : "/",
    relative_urls : true,
    convert_urls : false,
    onchange_callback : "countMceEditorChars",
    content_css : "/css/sportnik_editor.css"

});

function appTinyMCE_onInit() {
    tinyMCE.idCounter=0;
}
