<commit_before><?php 
$textEditorWidth=intval(Config::get('CONTENTS_TXT_EDITOR_WIDTH'));
$textEditorHeight=intval(Config::get('CONTENTS_TXT_EDITOR_HEIGHT'));
if($textEditorWidth<580)   $textEditorWidth=580;
//else $textEditorWidth=  $textEditorWidth;
if($textEditorHeight<100)  $textEditorHeight=380;
else $textEditorHeight= $textEditorHeight-70;
?> 
<script language="javascript">
tinyMCE.init({
	mode : "textareas",
	width: "100%", 
	height: "<?php echo $textEditorHeight?>px", 	
	inlinepopups_skin : "concreteMCE",
	theme_concrete_buttons2_add : "spellchecker",
	relative_urls : false,
	document_base_url: '<?php echo BASE_URL . DIR_REL?>/',
	convert_urls: false,
	content_css : "<?php echo $theme->getThemeEditorCSS()?>",
	<?php 
	$txtEditorMode=Config::get('CONTENTS_TXT_EDITOR_MODE');
	if( $txtEditorMode=='CUSTOM' ){ ?>
		//theme : "concrete",
		<?php 
		echo Config::get('CONTENTS_TXT_EDITOR_CUSTOM_CODE').'';
	}elseif($txtEditorMode=='ADVANCED'){ ?>
		plugins: "inlinepopups,spellchecker,safari,advlink,table,advhr,advimage,xhtmlxtras,emotions,insertdatetime,paste,visualchars,nonbreaking,pagebreak,style",
		editor_selector : "ccm-advanced-editor",
		theme : "advanced",
		theme_advanced_buttons1 : "cut,copy,paste,pastetext,pasteword,|,undo,redo,|,styleselect,formatselect,fontsizeselect,fontselect",
		theme_advanced_buttons2 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,outdent,indent,blockquote,|,link,unlink,anchor,|,forecolor,backcolor,|,image,charmap,emotions",
		theme_advanced_buttons3 : "cleanup,code,help,charmap,insertdate,inserttime,visualchars,nonbreaking,pagebreak,hr,|,tablecontrols",		
		theme_advanced_blockformats : "p,address,pre,h1,h2,h3,div,blockquote,cite",
		theme_advanced_fonts : "Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",
		theme_advanced_font_sizes : "1,2,3,4,5,6,7",
		theme_advanced_more_colors : 1,						<commit_msg>added language selection to tinymce editor config<commit_after><?php 
$textEditorWidth=intval(Config::get('CONTENTS_TXT_EDITOR_WIDTH'));
$textEditorHeight=intval(Config::get('CONTENTS_TXT_EDITOR_HEIGHT'));
if($textEditorWidth<580)   $textEditorWidth=580;
//else $textEditorWidth=  $textEditorWidth;
if($textEditorHeight<100)  $textEditorHeight=380;
else $textEditorHeight= $textEditorHeight-70;
?> 
<script language="javascript">
tinyMCE.init({
	mode : "textareas",
	language: "de",
	width: "100%", 
	height: "<?php echo $textEditorHeight?>px", 	
	inlinepopups_skin : "concreteMCE",
	theme_concrete_buttons2_add : "spellchecker",
	relative_urls : false,
	document_base_url: '<?php echo BASE_URL . DIR_REL?>/',
	convert_urls: false,
	content_css : "<?php echo $theme->getThemeEditorCSS()?>",
	<?php 
	$txtEditorMode=Config::get('CONTENTS_TXT_EDITOR_MODE');
	if( $txtEditorMode=='CUSTOM' ){ ?>
		//theme : "concrete",
		<?php 
		echo Config::get('CONTENTS_TXT_EDITOR_CUSTOM_CODE').'';
	}elseif($txtEditorMode=='ADVANCED'){ ?>
		plugins: "inlinepopups,spellchecker,safari,advlink,table,advhr,advimage,xhtmlxtras,emotions,insertdatetime,paste,visualchars,nonbreaking,pagebreak,style",
		editor_selector : "ccm-advanced-editor",
		theme : "advanced",
		theme_advanced_buttons1 : "cut,copy,paste,pastetext,pasteword,|,undo,redo,|,styleselect,formatselect,fontsizeselect,fontselect",
		theme_advanced_buttons2 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,outdent,indent,blockquote,|,link,unlink,anchor,|,forecolor,backcolor,|,image,charmap,emotions",
		theme_advanced_buttons3 : "cleanup,code,help,charmap,insertdate,inserttime,visualchars,nonbreaking,pagebreak,hr,|,tablecontrols",		
		theme_advanced_blockformats : "p,address,pre,h1,h2,h3,div,blockquote,cite",
		theme_advanced_fonts : "Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",
		theme_advanced_font_sizes : "1,2,3,4,5,6,7",
		theme_advanced_more_colors : 1,						
{'fraction_non_alphanumeric': 0.1436578783475192, 'fraction_numerical': 0.013286277766244551, 'mean_word_length': 11.813829787234043, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3300531', 'n_tokens_mistral': 1918, 'n_tokens_neox': 1772, 'n_words': 190}