Advertisement
vikdiesel

TinyMCE Images Plugin Implementation (full implementation)

May 23rd, 2011
3,862
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!-- TinyMCE -->
  2. <!-- Powered with JustBoil Images (a TinyMCE Images Upload Plugin). More info at http://justboil.me/tinymce-images-plugin/ -->
  3.  
  4. <script type="text/javascript" src="tiny_mce/tiny_mce_src.js"></script>
  5. <script type="text/javascript">
  6.     tinyMCE.init({
  7.     // General options
  8.     mode : "textareas",
  9.     theme : "advanced",
  10.     plugins : "jbimages,autolink,lists,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",
  11.     language : "en",
  12.      
  13.     // Theme options
  14.     theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
  15.     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",
  16.     theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
  17.     theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft,|,jbimages",
  18.     theme_advanced_toolbar_location : "top",
  19.     theme_advanced_toolbar_align : "left",
  20.     theme_advanced_statusbar_location : "bottom",
  21.     theme_advanced_resizing : true,
  22.      
  23.     // This is required for the image paths to display properly
  24.     relative_urls : false,
  25.      
  26.     // Style formats (OPTIONAL)
  27.     style_formats : [
  28.     {title : 'Bold text', inline : 'b'},
  29.     {title : 'Red text', inline : 'span', styles : {color : '#ff0000'}},
  30.     {title : 'Red header', block : 'h1', styles : {color : '#ff0000'}},
  31.     {title : 'Example 1', inline : 'span', classes : 'example1'},
  32.     {title : 'Example 2', inline : 'span', classes : 'example2'},
  33.     {title : 'Table styles'},
  34.     {title : 'Table row 1', selector : 'tr', classes : 'tablerow1'}
  35.     ]
  36.     });
  37. </script>
  38. <!-- /TinyMCE -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement