We Recommend

Pro JavaScript Techniques Pro JavaScript Techniques
Pro JavaScript Techniques is the ultimate JavaScript book for the modern web developer. It provides everything you need to know about modern JavaScript, and shows what JavaScript can do for your web sites. This book doesn't waste any time looking at things you already know, like basic syntax and structures.


Posted By

tylerhall on 03/09/07


Tagged

tinymce


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

jonhenshaw


TinyMCE Default Config


Published in: JavaScript 


This creates a tinymce editor on top of each textarea on the page. The editor will include bold, italic, underline, strikethrough, alignment, list, link, and undo/redo buttons.

  1. <script language="javascript" type="text/javascript" src="/js/tiny_mce/tiny_mce.js"></script>
  2. <script language="javascript" type="text/javascript">
  3. tinyMCE.init({
  4. mode : "textareas",
  5. theme : "advanced",
  6. theme_advanced_buttons1 : "bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright, justifyfull,bullist,numlist,undo,redo,link,unlink",
  7. theme_advanced_buttons2 : "",
  8. theme_advanced_buttons3 : "",
  9. theme_advanced_toolbar_location : "top",
  10. theme_advanced_toolbar_align : "left",
  11. theme_advanced_path_location : "bottom",
  12. extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]"
  13. });
  14. </script>

Report this snippet 

You need to login to post a comment.