
In this tutorial you will learn how simple it is to include TidyRTE into your website.
- Download TidyRTE here
- Extract the rar-archive to any folder
- Copy the folder "tidyrte" to your website's root directory
- Include the TidyRTE script into the webpages where you want to use TidyRTE. Use the path "/tidyrte/tidyrte.js".
- Create a "div" element, create an ID for it then add a textarea to this "div" element.
- To activate the editor place anywhere the JavaScript command tidyrte('the id of the div element you have created'); .
- Thats it.
<html>
<head>
<title>TidyRTE Sample</title>
<script src="/tidyrte/tidyrte.js" type="text/javascript"></script>
</head>
<body>
<div id="box"><textarea name="text" style="width:480px; height:272px;"></textarea></div>
<script type="text/javascript">
tidypath="/tidyrte/";
tidyrte("box");
</script>
</body>
</html>
Enjoy!
