Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

tinymce helper

Derek Jones edited this page · 4 revisions
Clone this wiki locally

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;
}
}
Something went wrong with that request. Please try again.