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... ??? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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.... -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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.. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
thank u friend...got it worked.. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---