clifgray
clifgray

Reputation: 4419

tinymce textarea editor

I am using Tiny MCE which is a javascript file that allows you to turn textareas into more of an editor interface. I just downloaded the file from the website http://www.tinymce.com/index.php and I am having problems setting it up. At the simplest level do I only need the following code:

<script type="text/javascript" src="js/tiny_mce.js">
<script type="text/javascript">
tinyMCE.init({
    // General options
    mode : "textareas",    
});
</script>

<form method="post" action="dump.php">
    <textarea name="content"></textarea>
</form> 

And then the tiny_mce.js file in my project. Or do I need other files in my project? By the way I am using eclipse to write a google app engine project in python.

Thanks!

Upvotes: 1

Views: 703

Answers (1)

Ashwini Chaudhary
Ashwini Chaudhary

Reputation: 250961

I think you're missing a closing </script> tag here, which is not allowing javascript to run properly.

It should be like this:

<script type="text/javascript" src="js/tiny_mce.js"></script>

Upvotes: 1

Related Questions