tiny mce

i ve installed tiny mce plugins..and extracted it to public/javascript
folder....how can i write textarea tag in rhtml and how to call tinymce
function..??? is there any link for tinymce step by step guide... ???

Step 1: In yr rhtml load the necessay java scripts using
java_script_include_tag
Step 2: have this script (change the 'available_fields_list' to yr field
id)
<script language="javascript" type="text/javascript">
    tinyMCE.init({
      mode : "none",
      width : "480px",
      height: "300px",
      theme : "advanced",
      theme_advanced_buttons1 : "bold, italic, underline,
justifyleft,justifyright,justifycenter,justifyfull,bullist,numlist,separator,outdent,indent,separator,undo,redo,separator,link,unlink,anchor,image,cleanup,help",
      theme_advanced_buttons2 : "",
      theme_advanced_buttons3 : "",
      theme_advanced_disable : "charmap, hr, sub, sup, media, image,
anchor, link, unlink, help, html, styleselect, formatselect, code,
removeformat, cleanup, visualaid",
      theme_advanced_toolbar_location : "top"
     });

    insertField = function()
    {
        mybox = document.getElementById('available_fields_list');
        myIndex = mybox.selectedIndex;
        field = mybox[myIndex].innerHTML;
        tinyMCE.execCommand('mceInsertContent',false,' <%%= ' + field +
' %> ');
    }
</script>

Insert this script and try....

thank u very much...for ur kind reply...

still it displays textarea field not editor field ..
i m trying out this tag..in rhtml file " <%= text_area_tag( 'blog', '',
:cols => "50" ,:class => "tiny_mce" ) %></p> " any suggestions pls..

if you want to have tiny_mce appear on text area instances for your
project, you can follow this step-by-step tutorial:

http://www.johnwulff.com/articles/2006/05/31/tinymce-with-ruby-on-rails

worked well for me.

thank u friend...got it worked..