tinyMCE.init({
      // General options
   mode : "exact",
	 plugins: "paste",
	 elements: "def_descr,sub_descr,def_limits,elog_descr,m_descr",
	 theme : "advanced",
	 content_css : "myesmiley/my_esmiley.css",
	
	 theme_advanced_buttons1 : "bold,italic,underline,charmap,code,bullist,numlist,link",
	 theme_advanced_buttons2 : "",
	 theme_advanced_disable : "sup,sub,hr,indent,outdent",
	 theme_advanced_toolbar_location : "top",
	 theme_advanced_toolbar_align : "left",

	 entity_encoding : "raw",
	 element_format : "html",
	 relative_urls : false,
	 convert_fonts_to_spans : true,
	 strict_loading_mode : 1,
	 inline_styles : false,

	 valid_elements : "a[href],p,b,i,strong,ul,ol,li,em,br,u,span[class|onclick|style]",
	 paste_create_paragraphs : true,
	 paste_create_linebreaks : true,
	 paste_auto_cleanup_on_paste : true,
	 paste_convert_headers_to_strong : false,
	 paste_strip_class_attributes : "all",
	 paste_remove_spans : true,
	 paste_remove_styles : true

   });

tinyMCE.init({
      // General options
   mode : "exact",
	 plugins: "paste,table,fullscreen,searchreplace,insertdatetime,spellchecker",
	 skin:"o2k7",
	 elements: "content,comment,descr,cactions,description,risc_factor,arguments,vtext,vtext_uk,vtext_se",
	 theme : "advanced",

	 // Style formats
	 content_css : "incl/tiny_mce/custom_table_cells.css",    
	 style_formats : [			  
			  {title : 'Table cell styles'},
			  {title : 'Cell normal', selector : 'td', classes : 'ctmce_cell'},
			  {title : 'Cell header cell', selector : 'td', classes : 'ctmce_header1'},
			  {title : 'Cell green background', selector : 'td', classes : 'ctmce_cell_green'},
			  {title : 'Cell red background', selector : 'td', classes : 'ctmce_cell_red'},
			  {title : 'Cell yellow background', selector : 'td', classes : 'ctmce_cell_yellow'}
						  ],
	 table_cell_limit : 200,
	 table_row_limit : 20,
	 table_col_limit : 8,
	 table_default_border: 1,

	 theme_advanced_buttons1 : "fullscreen,code,undo,redo,cut,copy,paste,pastetext,pasteword,search,replace,spellchecker,insertdate,inserttime,charmap,link,unlink",
	 theme_advanced_buttons2 : "bold,italic,sub,sup,forecolor,bullist,numlist,table,delete_table,merge_cells,split_cells,delete_col,delete_row,col_after,col_before,row_after,row_before,styleselect",
	 theme_advanced_buttons3 : "",
	 theme_advanced_disable : "justifyright,justifyleft,justifycenter,justifyfull,hr",

	 theme_advanced_toolbar_location : "top",
	 theme_advanced_toolbar_align : "left",

	 entity_encoding : "raw",
	 element_format : "html",
	 relative_urls : false,
	 convert_fonts_to_spans : true,
	 strict_loading_mode : 1,
	 inline_styles : true,
	 force_hex_style_colors : true,
	 fix_nesting : true,
	 trim_span_elements : true,

	 valid_elements : "span[style|class|onclick],a[href|target],p,b,i,em,strong,ul,ol,li,br,u,sup,sub,font[style],table[],tr[],#td[class|colspan],img[src|alt]",

	 paste_create_paragraphs : true,
	 paste_create_linebreaks : true,
	 paste_auto_cleanup_on_paste : true,
	 paste_convert_headers_to_strong : false,
	 paste_strip_class_attributes : "all",
	 paste_remove_spans : true,
	 paste_remove_styles : true,
	 fix_table_elements : true,
	 spellchecker_rpc_url : '/incl/tiny_mce/plugins/spellchecker/rpc.php'
   });

