aries_

tinymce

Nov 2nd, 2012
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.85 KB | None | 0 0
  1. <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
  2. function advance() {
  3.     $tinymce = '<script type="text/javascript" src="' . base_url() . 'asset/tiny_mce/tiny_mce.js"></script>
  4. <script type="text/javascript">
  5. tinyMCE.init({
  6. theme : "advanced",
  7. mode : "textareas",
  8. plugins : "lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups,autosave",
  9. theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
  10.         theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
  11.         theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
  12.         theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft",
  13.         theme_advanced_toolbar_location : "top",
  14.         theme_advanced_toolbar_align : "left",
  15.         theme_advanced_statusbar_location : "bottom",
  16.        
  17. convert_urls : false,
  18. height: 300,
  19. width:700
  20. });
  21. </script>';
  22.     return $tinymce;
  23.  
  24. }
  25.  
  26. function simple() {
  27.     $tinymce = '<script type="text/javascript" src="' . base_url() . 'asset/tiny_mce/tiny_mce.js"></script>
  28. <script type="text/javascript">
  29.     tinyMCE.init({
  30.         mode : "textareas",
  31.         theme : "simple",
  32.                height: 300,
  33.                width:700
  34.     });
  35. </script>';
  36.  
  37.  
  38.     return $tinymce;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment