A Note To Template Developers

Some web sites want to offer a rich text editor for their users so that they do not have to enter the HTML tags themselves. There are several JavaScript based rich text editors around that you can use. They can all be configured with what buttons you want to allow your users to use and it is important that these correspond to the ones you have defined in your white lists.

Below, we show you how to add TinyMCE to the posting form shown in the forum-demo web application:

Inside the head element, add the following:

<script
  type="text/javascript"
  src="http://tinymce.moxiecode.com/js/tinymce/jscripts/tiny_mce/tiny_mce.js">
</script>
<script type="text/javascript">
tinyMCE.init({
  mode : "textareas"
});
</script>

When you reload your web page, you will now see a simple, rich text editor. For production environments, we recommend downloading TinyMCE and refer to your local copy rather than the absolute URI above.