Posted By

tylerhall on 03/09/07


Tagged

tinymce


Versions (?)

Who likes this?

1 person have 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.