// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

function loadHtmlEditor() {
	tinyMCE.init({
			// General options
			mode : "textareas",
			theme : "advanced",
			plugins : "safari,spellchecker,style,iespell,inlinepopups,media,contextmenu,paste,directionality,fullscreen,nonbreaking,xhtmlxtras",

			// Theme options 
			// Add later: sub,sup, justifyleft,justifycenter,justifyright,justifyfull,spellchecker,iespell
			// Possibly add later: styleselect,fontselect, outdent,indent,blockquote, bullist,numlist
			theme_advanced_buttons1 : "fontsizeselect,bold,italic,underline,strikethrough,forecolor,|,undo,redo,|,link,unlink,image,media,charmap,|,removeformat,cleanup,code,|,fullscreen",
			theme_advanced_buttons2 : "",
			theme_advanced_buttons3 : "",
			theme_advanced_toolbar_location : "top",
			theme_advanced_toolbar_align : "left",
			theme_advanced_statusbar_location : "bottom",
			// theme_advanced_resizing : true,
			// theme_advanced_toolbar_location : "external"
	});
};