I had an email yesterday from a guy that wanted to know how to integrate TinyMCE into a CodeIgniter project. This is actually pretty easy and I thought it would be a good idea to share how I do it.
Step 1
Visit TinyMCE website and download the script. I always download the Main package.
Step 2
Now place the TinyMCE files in a directory. I normally use /js or /javascript. Here is an example directory structure:
/js/ /system/ /index.php
Step 3
Now open the view file you want to integrate TinyMCE in and above your form add:
<script type="text/javascript" src="'.base_url().'/js/tinymce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
mode : "textareas"
});
</script>
You will need to enable the url helper to use the base_url function.
After that you should have a working editor.
