tinyMCE.init({
	// General options
	mode : "textareas",
	theme : "advanced",
	plugins: "paste",
	
	// Theme options
	theme_advanced_buttons1 : "bold,italic,strikethrough,|,cut,copy,paste,pastetext,pasteword,|,bullist,numlist,|,link,unlink,|,cleanup,|,removeformat,|,image,|,code",
	theme_advanced_buttons2 : "",
	theme_advanced_buttons3 : "",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "middle",
	theme_advanced_resizing : false,
	paste_auto_cleanup_on_paste : true,
	remove_script_host: false,
	relative_urls : false,
	editor_selector: "tinymce",
	handle_event_callback: function CleanupHTML_callback(e) {
    if (e.ctrlKey && e.keyCode == 86 && e.type != "keyup") {
        setTimeout('tinyMCE.execInstanceCommand("'+e.target.editorId+'", "mceCleanup", true)',1);
        return false;
    }
    return true;
	},
	language: "lv",
	
	cleanup_on_startup : true,
	height: "300",
	width: "430",
	
	invalid_elements : "embed,param,iframe,script,object,onclick,ondblclick,onkeydown,onkeypress,onkeyup,onmousedown,onmousemove,onmouseout,onmouseover,onmouseup,font"

});

tinyMCE.init({
	// General options
	mode : "textareas",
	theme : "advanced",
	plugins: "paste",
	// Theme options
	theme_advanced_buttons1 : "bold,italic,strikethrough,|,pastetext,pasteword,|,bullist,numlist,|,link,unlink,|,cleanup,|,removeformat,|,image,|,code",
	theme_advanced_buttons2 : "",
	theme_advanced_buttons3 : "",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "middle",
	paste_auto_cleanup_on_paste : true,
	theme_advanced_resizing : false,
	remove_script_host: false,
	relative_urls : false,
	editor_selector: "tinyintro",
	handle_event_callback: function CleanupHTML_callback(e) {
    if (e.ctrlKey && e.keyCode == 86 && e.type != "keyup") {
        setTimeout('tinyMCE.execInstanceCommand("'+e.target.editorId+'", "mceCleanup", true)',1);
        return false;
    }
    return true;
	},
	language: "lv",
	
	cleanup_on_startup : true,
	height: "150",
	width: "330",
	
	invalid_elements : "embed,param,iframe,script,object,onclick,ondblclick,onkeydown,onkeypress,onkeyup,onmousedown,onmousemove,onmouseout,onmouseover,onmouseup,font"

});

tinyMCE.init({
	// General options
	mode : "textareas",
	theme : "advanced",
	plugins: "paste,simplebrowser",
	// Theme options
// 	theme_advanced_buttons1 : "bold,italic,strikethrough,|,cut,copy,paste,pastetext,pasteword,|,bullist,numlist,|,link,unlink,|,cleanup,|,removeformat,|,image,|,code",
	theme_advanced_buttons1 : "bold,italic,strikethrough,|,pastetext,pasteword,|,bullist,numlist,|,link,unlink,|,cleanup,removeformat,|,image,simplebrowser,code",
	theme_advanced_buttons2 : "",
	theme_advanced_buttons3 : "",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "middle",
	paste_auto_cleanup_on_paste : true,
	theme_advanced_resizing : false,
	remove_script_host: false,
	relative_urls : false,
	editor_selector: "editor_tiny",
	handle_event_callback: function CleanupHTML_callback(e) {
    if (e.ctrlKey && e.keyCode == 86 && e.type != "keyup") {
        setTimeout('tinyMCE.execInstanceCommand("'+e.target.editorId+'", "mceCleanup", true)',1);
        return false;
    }
    return true;
	},
	language: "lv",
	
	cleanup_on_startup : true,
	height: "150",
	width: "330",
	extended_valid_elements : "iframe[marginheight|id|frameborder|scrolling|align|marginwidth|name|id|src|height|width|]",
	invalid_elements : "script,onclick,ondblclick,onkeydown,onkeypress,onkeyup,onmousedown,onmousemove,onmouseout,onmouseover,onmouseup,font"

});
