tinyMCE.init({

	mode : "textareas",
	theme : "advanced",

	theme_advanced_layout_manager : "SimpleLayout",
	language : "en",
	plugins : "paste,fullscreen",

	theme_advanced_buttons1 : "bold,italic,underline,bullist,separator,cut,copy,paste,separator,undo,redo,separator,link,unlink,anchor,separator,fullscreen",
	theme_advanced_buttons2 : "",
	theme_advanced_buttons3 : "",


	paste_create_paragraphs : false,
	paste_create_linebreaks : false,
	paste_use_dialog : false,
	paste_auto_cleanup_on_paste : false,
	paste_convert_middot_lists : true,
	paste_unindented_list_class : "unIndentedList",
	paste_convert_headers_to_strong : true,
	paste_insert_word_content_callback : "convertWord",


	valid_elements : "a[href|name|target],font[color],strong/b,em/i,u,ul,ol,li,p", //,p[align]

	content_css : "CSS/myeditor.css"



});

function convertWord(type, content) {
	switch (type) {
		// Gets executed before the built in logic performes it's cleanups //,font[color] || ,pastetext,pasteword
		case "before":
			content = content.toLowerCase(); // Some dummy logic
			break;

		// Gets executed after the built in logic performes it's cleanups
		case "after":
			content = content.toLowerCase(); // Some dummy logic
			break;
	}

	return content;
}
