forked from bcit-ci/CodeIgniter
-
Notifications
You must be signed in to change notification settings - Fork 0
tinymce helper
Derek Jones edited this page Jul 5, 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;
}
}