how to integrate tinymce in latest version of codeigniter how to integrate tinymce in latest version of codeigniter codeigniter codeigniter

how to integrate tinymce in latest version of codeigniter


There are flaws in your code:

  1. $this->load->view() accepts second parameter as array while you are passing just base_url value.

  2. The true in third parameter of $this->load->view() function does not sends the output to browser so leave it blank.

  3. Make sure your paths to js paths are correct in the drop list code it seems that you have put the js in the view folder inside application.


Write your javascript code in view file itself. or simply write it in separate js file(tinymce_properties.js) and include it right after tiny_mce.js

<script type="text/javascript" src="js/tiny_mce/tiny_mce.js"></script><script type="text/javascript" src="js/tiny_mce/tinymce_properties.js"></script><form method="post" action="somepage"><textarea name="content" style="width:100%"></textarea></form>


Make sure all plugins your loading exists

try this ->> plugins : 'advlist autolink link image lists charmap print preview',

if it works, then you dont have all plugins in your statement ->> plugins : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager",