Skip to content
World Wide Web Server edited this page Jul 4, 2012 · 4 revisions

if(!function_exists('initialize_tinymce')){ function initialize_tinymce() { $ci=&get;_instance(); $ci->load->helper('url_helper');

$tinymce = '
    <!-- TinyMCE -->
    [removed][removed]
    [removed]
        tinyMCE.init({
            // General options
            mode : "textareas",
            theme : "advanced",
            plugins : "emotions, insertdatetime, media,html",
            relative_urls : false,
            remove_script_host : false,
            document_base_url : "' . base_url() . '",
            theme_advanced_toolbar_location : "top",
            theme_advanced_toolbar_align : "left",
            theme_advanced_buttons1 : "bold, italic, underline, strikethrough, |, justifyleft, justifycenter, justifyright, justifyfull, |, formatselect, fontselect, fontsizeselect",
            theme_advanced_buttons2: "bullist, numlist, outdent, indent, blockquote, |, link, unlink, image, media, emotions, cleanup, code, |, insertdate, inserttime, |, undo, redo, removeformat",
            theme_advanced_buttons3 : ""
            
        });
    [removed]
    <!-- /TinyMCE -->
    ';

return $tinymce;

} }

Clone this wiki locally