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
Step 2: have this script (change the 'available_fields_list' to yr field
<script language="javascript" type="text/javascript">
      mode : "none",
      width : "480px",
      height: "300px",
      theme : "advanced",
      theme_advanced_buttons1 : "bold, italic, underline,
      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 +
' %> ');

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:


worked well for me.

thank u friend...got it worked..