Advertisement
eduardopaludo

init_tiny_mce.js

Jul 28th, 2014
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tinyMCE.init({
  2.         // General options
  3.         mode : "textareas",
  4.         theme : "advanced",
  5.         language : "pt",
  6.         relative_urls : false,
  7.         remove_script_host : false,
  8.         plugins : "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,wordcount,advlist,autosave",
  9.  
  10.         // Theme options
  11.         theme_advanced_buttons1 : "code,preview,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
  12.         theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
  13.         theme_advanced_toolbar_location : "top",
  14.         theme_advanced_toolbar_align : "left",
  15.         theme_advanced_statusbar_location : "bottom",
  16.         theme_advanced_resizing : true,
  17.  
  18.         // Example content CSS (should be your site CSS)
  19.         content_css : "../css/foundation.min.css",
  20.  
  21.         // Drop lists for link/image/media/template dialogs
  22.         template_external_list_url : "lists/template_list.js",
  23.         external_link_list_url : "lists/link_list.js",
  24.         external_image_list_url : "lists/image_list.js",
  25.         media_external_list_url : "lists/media_list.js",
  26.  
  27.         // Style formats
  28.         style_formats : [
  29.             {title : 'Bold text', inline : 'b'},
  30.             {title : 'Red text', inline : 'span', styles : {color : '#ff0000'}},
  31.             {title : 'Red header', block : 'h1', styles : {color : '#ff0000'}},
  32.             {title : 'Example 1', inline : 'span', classes : 'example1'},
  33.             {title : 'Example 2', inline : 'span', classes : 'example2'},
  34.             {title : 'Table styles'},
  35.             {title : 'Table row 1', selector : 'tr', classes : 'tablerow1'}
  36.         ],
  37.  
  38.         // Replace values for the template plugin
  39.         template_replace_values : {
  40.             username : "Some User",
  41.             staffid : "991234"
  42.         }
  43.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement