
//This is the code required to load if you wish to use WYSIWYG
//Name this file the same lines as the Component
//
// active:
//make sure there is an "active" attribute in the SQL database o type: meta boolean string
//make sure the url: 'cms-press', is set in the activate () function







//this displays a success or failure message when an update on the list is performed
function messageDisplay() {
	$j('#refreshmsg').show().animate({opacity:1},1500).fadeOut(500);	
}






//This is the code required to load if you wish to use WYSIWYG
tinyMCE.init({
		mode : "textareas",
		theme : "advanced",
		editor_selector : "tinymce",
		plugins : "paste,imagemanager,filemanager",
		
		theme_advanced_buttons1 : "",
		theme_advanced_buttons2 : "",

		theme_advanced_buttons3 : "",
		theme_advanced_toolbar_location : "top",
		paste_auto_cleanup_on_paste :true,
		paste_convert_headers_to_strong : true,
		theme_advanced_toolbar_align : "left",
		content_css : path + "styles/tinyMCE.css",
		
		setup : function(ed) {
			// Gets executed before DOM to HTML string serialization
			ed.onPreProcess.add(function(ed, o) {
				// State get is set when contents is extracted from editor
				if (o.get) {
					// Add span element to each strong/b element
					tinymce.each(ed.dom.select('ul', o.node), function(n) {
						n.setAttribute("class","p");
					});
				}
			}); 
	
	
	
		}
	
	});
	
	
	
	
