tinyMCE.init({
	mode : "textareas",
	theme : "simple",
	content_css : "../resources/tinyMCE_Word.css",
	paste_auto_cleanup_on_paste : true,
	paste_convert_headers_to_strong : true,
	force_br_newlines : true,
    force_p_newlines : false,
    auto_reset_designmode : true
});


/*-----------------------------------------------------------------*
 | Purpose: This takes the string name of a FCKeditor and returns  |
 |          the XHTML for the content it contains.                 |
 *-----------------------------------------------------------------*/
function getEditorValue( instanceName ) {
    return tinyMCE.getInstanceById(instanceName).getBody().innerHTML
}

/*-----------------------------------------------------------------*
 | Purpose: This takes the string name of a FCKeditor and a string |
 |          of text (can be X/HTML) and loads it into the          |
 |          'instanceName' FCKeditor.                              |
 *-----------------------------------------------------------------*/
function setEditorValue( instanceName, newContent ){
    tinyMCE.getInstanceById(instanceName).getBody().innerHTML = newContent;
}


