﻿function InitializeTinyMCEEditor()
{
/*
	tinyMCE_GZ.init({
		plugins : 'spellchecker,safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,',
		themes : 'advanced',
		languages : 'en',
		disk_cache : false,
		debug : false
	});
*/
	tinyMCE.init(
	{
		relative_urls:true,
		editor_selector : "CMS_TynyMCE_Editor",
		theme_advanced_toolbar_align:'left',
		theme_advanced_resizing:false,
		theme_advanced_buttons1:'fullscreen',
		theme_advanced_buttons2:'',
		theme_advanced_buttons3:'',
		theme_advanced_buttons4:'',
		theme_advanced_toolbar_location:'top',
		fullscreen_new_window:true,
		theme:'advanced',
		theme_advanced_path_location:'bottom',
		plugins:'fullscreen',
		mode:'textareas',
		language:'en',
		width : '100%',
		extended_valid_elements : "iframe[src|width|height|name|align|scrolling|frameborder|border]"
	});

	tinyMCE.settings["fullscreen_settings"] =
	{
		plugins:"safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
		theme_advanced_buttons1: "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect",
		theme_advanced_buttons2: "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
		theme_advanced_buttons3: "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
		theme_advanced_buttons4: "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak"
	};
}
