<script src="https://cloud.tinymce.com/stable/tinymce.min.js"></script>
<script>
window.addEventListener("load", function(){

	// STEP 1
	var imageFolderPath = "<?php echo(UPLOAD_FOLDER); ?>";
	var cssPath = "<?php echo(PROJECT_DIR . ""); ?>styles/main.css";
	var popup;
  	
  	// set up the tinymce editor
  	tinymce.init({ 
  		selector:'textarea[name="content"]', 
  		height: 200,
	  	menubar: false,
	 	plugins: [
		    'advlist autolink lists link image charmap print preview anchor textcolor',
		    'searchreplace visualblocks code fullscreen',
		    'insertdatetime media table contextmenu paste code help wordcount'
	  	],
	  	toolbar: 'insert | undo redo |  formatselect | bold italic backcolor  | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | code | help',
	  	content_css: [cssPath] 
  	});
  	

  	// STEP 2


  	// STEP 3


  	// STEP 4
  	
});
</script>