<commit_before><!DOCTYPE html>
<html>
<head>
<title>Imagetools plugin test</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<script src="../../js/tinymce/tinymce.dev.js"></script>
<script src="../../js/tinymce/plugins/imagetools/plugin.dev.js"></script>
<!-- <link rel="stylesheet" href="../../js/tinymce/skins/lightgray/skin.min.css"> -->
<script>
	tinymce.init({
		//imagetools_cors_hosts: ["moxiecode.cachefly.net"],
		//imagetools_proxy: "proxy.php",

		//images_upload_url: 'postAcceptor.php',
		//images_upload_base_path: 'base/path',
		//images_upload_credentials: true,

		selector: "textarea.tinymce",
		theme: "modern",
		plugins: [
			"advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker",
			"searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking",
			"save table contextmenu directionality emoticons template paste textcolor importcss colorpicker imagetools"
		],
		content_css: "css/development.css",
		add_unload_trigger: false,
		height: 600,
		toolbar1: "undo redo | styleselect | alignleft aligncenter alignright alignjustify | link image | media | emoticons"
	});

	function send() {
		tinymce.activeEditor.uploadImages(function(success) {
			document.forms[0].submit();
		});
	}

	function upload() {
		tinymce.activeEditor.uploadImages(function(success) {
			console.log(success);
		});
	}

	function dump() {
		console.log(tinymce.activeEditor.getContent());
	}
</script>
</head>
<body>

<form method="post" action="http://www.tinymce.com/dump.php?example=true">
	<textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 80%" class="tinymce">
		<p>
			<img src="img/dogleft.jpg" width="160" height="100">
			<img src="img/dogleft.jpg" style="width: 160px; height: 100px">
			<img src="img/dogleft.jpg" style="width: 20%">
			<img src="img/dogleft.jpg">
			<img src="http://moxiecode.cachefly.net/tinymce/v9/images/logo.png">
		</p>
	</textarea>

	<input type="button"value="Submit" onclick="send()" />
	<input type="button" value="Dump" onclick="dump()" />
	<input type="button" value="Upload" onclick="upload()" />
</form>

</body>
</html>
<commit_msg>Fixed so dump in imagetools.html displays the HTML.<commit_after><!DOCTYPE html>
<html>
<head>
<title>Imagetools plugin test</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<script src="../../js/tinymce/tinymce.dev.js"></script>
<script src="../../js/tinymce/plugins/imagetools/plugin.dev.js"></script>
<!-- <link rel="stylesheet" href="../../js/tinymce/skins/lightgray/skin.min.css"> -->
<script>
	tinymce.init({
		//imagetools_cors_hosts: ["moxiecode.cachefly.net"],
		//imagetools_proxy: "proxy.php",

		//images_upload_url: 'postAcceptor.php',
		//images_upload_base_path: 'base/path',
		//images_upload_credentials: true,

		selector: "textarea.tinymce",
		theme: "modern",
		plugins: [
			"advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker",
			"searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking",
			"save table contextmenu directionality emoticons template paste textcolor importcss colorpicker imagetools"
		],
		content_css: "css/development.css",
		add_unload_trigger: false,
		height: 600,
		toolbar1: "undo redo | styleselect | alignleft aligncenter alignright alignjustify | link image | media | emoticons"
	});

	function send() {
		tinymce.activeEditor.uploadImages(function(success) {
			document.forms[0].submit();
		});
	}

	function upload() {
		tinymce.activeEditor.uploadImages(function(success) {
			console.log(success);
		});
	}

	function dump() {
		var content = tinymce.activeEditor.getContent();

		tinymce.$('#view').html(content);
		console.log(content);
	}
</script>
</head>
<body>

<form method="post" action="http://www.tinymce.com/dump.php?example=true">
	<textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 80%" class="tinymce">
		<p>
			<img src="img/dogleft.jpg" width="160" height="100">
			<img src="img/dogleft.jpg" style="width: 160px; height: 100px">
			<img src="img/dogleft.jpg" style="width: 20%">
			<img src="img/dogleft.jpg">
			<img src="http://moxiecode.cachefly.net/tinymce/v9/images/logo.png">
		</p>
	</textarea>

	<input type="button"value="Submit" onclick="send()" />
	<input type="button" value="Dump" onclick="dump()" />
	<input type="button" value="Upload" onclick="upload()" />
</form>

<div id="view"></div>
	
</body>
</html>

{'fraction_non_alphanumeric': 0.17908117752007136, 'fraction_numerical': 0.012488849241748439, 'mean_word_length': 4.909090909090909, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, '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': '3924031', 'n_tokens_mistral': 1714, 'n_tokens_neox': 1533, 'n_words': 301}