<commit_before>// Extended by janpub, 11.6.2011 JH
// See TinyMCE settings, http://tinymce.moxiecode.com/wiki.php/Configuration
// Requires PDW plugin, http://www.neele.name/pdw_toggle_toolbars/
//
var freeTextArea_settings = {
	mode: 'exact',
	//plugins: 'table,advimage,advlink,flash,searchreplace,print,contextmenu,paste,fullscreen,noneditable',
	theme: 'advanced',
	plugins: 'style,layer,table,advimage,advlink,iespell,spellchecker,media,searchreplace,print,contextmenu,paste,fullscreen,noneditable,inlinepopups,icode',
	theme_advanced_buttons1_add_before: '',
	theme_advanced_buttons1_add: 'sup,|,print,fullscreen,|,search,replace,iespell,spellchecker,autosave',
	theme_advanced_buttons2_add_before: 'cut,copy,paste,pastetext,pasteword,|',
	theme_advanced_buttons2_add: '|,table,media,insertlayer,inlinepopups,icode,',
	theme_advanced_buttons3: '',
	theme_advanced_buttons3_add_before: '',
	theme_advanced_buttons3_add: '',
	theme_advanced_buttons4: '',
	theme_advanced_toolbar_location: 'top',
	theme_advanced_toolbar_align: 'left',
	theme_advanced_path_location: 'bottom',
	extended_valid_elements: 'hr[class|width|size|noshade],span[class|align|style],pre[class],code[class],iframe[src|width|height|name|align]',
	file_browser_callback: 'fileBrowserCallBack',
	theme_advanced_resize_horizontal: false,
	theme_advanced_resizing: true,
	theme_advanced_disable: 'help,fontselect,fontsizeselect,forecolor,backcolor,styleselect',
	relative_urls: false,
	noneditable_noneditable_class: 'cs,csharp,vb,js',
	tab_focus: ':prev,:next',
	theme_advanced_resize_horizontal: true,
	remove_script_host: false
};
var fileBrowserUrl;
var srcField;
function fileBrowserCallBack(field_name, url, destinationType, win) {
	srcField = win.document.forms[0].elements[field_name];<commit_msg>Better way of not breaking images in tiny mce editor<commit_after>// Extended by janpub, 11.6.2011 JH
// See TinyMCE settings, http://tinymce.moxiecode.com/wiki.php/Configuration
// Requires PDW plugin, http://www.neele.name/pdw_toggle_toolbars/
//
var freeTextArea_settings = {
	mode: 'exact',
	//plugins: 'table,advimage,advlink,flash,searchreplace,print,contextmenu,paste,fullscreen,noneditable',
	theme: 'advanced',
	plugins: 'style,layer,table,advimage,advlink,iespell,spellchecker,media,searchreplace,print,contextmenu,paste,fullscreen,noneditable,inlinepopups,icode',
	theme_advanced_buttons1_add_before: '',
	theme_advanced_buttons1_add: 'sup,|,print,fullscreen,|,search,replace,iespell,spellchecker,autosave',
	theme_advanced_buttons2_add_before: 'cut,copy,paste,pastetext,pasteword,|',
	theme_advanced_buttons2_add: '|,table,media,insertlayer,inlinepopups,icode,',
	theme_advanced_buttons3: '',
	theme_advanced_buttons3_add_before: '',
	theme_advanced_buttons3_add: '',
	theme_advanced_buttons4: '',
	theme_advanced_toolbar_location: 'top',
	theme_advanced_toolbar_align: 'left',
	theme_advanced_path_location: 'bottom',
	extended_valid_elements: 'hr[class|width|size|noshade],span[class|align|style],pre[class],code[class],iframe[src|width|height|name|align]',
	file_browser_callback: 'fileBrowserCallBack',
	theme_advanced_resize_horizontal: false,
	theme_advanced_resizing: true,
	theme_advanced_disable: 'help,fontselect,fontsizeselect,forecolor,backcolor,styleselect',
	convert_urls: false,
	noneditable_noneditable_class: 'cs,csharp,vb,js',
	tab_focus: ':prev,:next',
	theme_advanced_resize_horizontal: true,
	remove_script_host: false
};
var fileBrowserUrl;
var srcField;
function fileBrowserCallBack(field_name, url, destinationType, win) {
	srcField = win.document.forms[0].elements[field_name];
{'fraction_non_alphanumeric': 0.12534818941504178, 'fraction_numerical': 0.008913649025069638, 'mean_word_length': 11.555944055944057, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5446209', 'n_tokens_mistral': 1290, 'n_tokens_neox': 1224, 'n_words': 152}