Does anyone have experiance using TinyMCE in ROR? I am creating a CMS type of system. I need text areas that users can add formatted text and links. I installed TinyMCE and it works beautifully when a user is creating an item in a textarea, but when a user edits the item the textarea is no longer a TinyMCE editor - just a plain old text area. Does anyone know why, and how do I fix it so that when a user is editing a textarea item they can use TinyMCE? Other options besides TinyMCE is welcomed as well. Thanks in advance -K --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 1/30/07, Kim <Kim.Griggs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Does anyone have experiance using TinyMCE in ROR? > > I am creating a CMS type of system. I need text areas that users can > add formatted text and links. I installed TinyMCE and it works > beautifully when a user is creating an item in a textarea, but when a > user edits the item the textarea is no longer a TinyMCE editor - just > a plain old text area. Does anyone know why, and how do I fix it so > that when a user is editing a textarea item they can use TinyMCE? > > Other options besides TinyMCE is welcomed as well. > > Thanks in advance -KI''ve never used TinyMCE for very long. I managed to integrate it once, but it was much too bulky for my tastes. I really dug widgEditor, despite its crappy icons: http://www.themaninblue.com/experiment/widgEditor/ I just found WYMeditor which looks *very* promising though: http://www.wymeditor.org/en/demo/ -- Rick Olson http://weblog.techno-weenie.net http://mephistoblog.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 -~----------~----~----~----~------~----~------~--~---
On Tuesday 30 January 2007 18:31, Kim wrote:> Does anyone have experiance using TinyMCE in ROR?Yes, I''m using this TincMCE plugin http://www.johnwulff.com/articles/2006/5/31/tinymce-with-ruby-on-rails/ and haven''t had any problems with it. Michael -- Michael Schuerig mailto:michael-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org http://www.schuerig.de/michael/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Rick, I tried widgeditor - seems buggy. Its OK, but now I am having the problem that when a user is first creating content the textfield does not let you enter text. But it works fine when you are editing information. Any suggestions? Michael, I could not get the TinyMCE plugin to install - any suggestions? Thanks --K On Jan 30, 10:26 am, Michael Schuerig <mich...-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org> wrote:> On Tuesday 30 January 2007 18:31, Kim wrote: > > > Does anyone have experiance using TinyMCE in ROR? > > Yes, I''m using this TincMCE plugin > > http://www.johnwulff.com/articles/2006/5/31/tinymce-with-ruby-on-rails/ > > and haven''t had any problems with it. > > Michael > > -- > Michael Schuerig > mailto:mich...-q5aiKMLteq5BV9CJdY2HSA@public.gmane.org://www.schuerig.de/michael/--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 1/30/07, Kim <Kim.Griggs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Rick, > I tried widgeditor - seems buggy. Its OK, but now I am having the > problem that when a user is first creating content the textfield does > not let you enter text. But it works fine when you are editing > information. Any suggestions?Yea, if you look at comment #208 on the blog, I posted a workaround for it: ----------------- RE: 198 and 207 I added this to widgInit(), directly underneath the if (theTextarea.id == "") {} loop. if (theTextarea.innerHTML == '''') theTextarea.innerHTML = ''Enter content here.'' It just adds content if there is none. Not perfect, but I can now update my pages. ----------------- http://www.themaninblue.com/writing/perspective/2005/01/27/ -- Rick Olson http://weblog.techno-weenie.net http://mephistoblog.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 -~----------~----~----~----~------~----~------~--~---
I''m using TinyMCE also in a couple of projects of mine. But it has some strange behaviours, which makes it hard for a user to edit his text. Also it doesn''t react the same in Internet Explorer and Firefox, which is a bit annoying. I''m considering switching to BBCode, which is used very often on forums. I find it really easy, and it could be an alternative for TinyMCE. Kind regards, Nick Snels http://www.railshostinginfo.com Compare and review Rails hosting companies -- 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 -~----------~----~----~----~------~----~------~--~---
Nick, Did you get tinymce to be able to edit content? On Jan 30, 12:50 pm, Nick Snels <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I''m using TinyMCE also in a couple of projects of mine. But it has some > strange behaviours, which makes it hard for a user to edit his text. > Also it doesn''t react the same in Internet Explorer and Firefox, which > is a bit annoying. I''m considering switching to BBCode, which is used > very often on forums. I find it really easy, and it could be an > alternative for TinyMCE. > > Kind regards, > > Nick Snelshttp://www.railshostinginfo.com > Compare and review Rails hosting companies > > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---
I have tinymce working fine on a rails app. Can you post the code for the textarea that you''re trying to make editable? Steve --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Sorry maybe I am confusing people. My problem is not that the text area is not editable, my problem is that when a user creates content (with a create action) for a page the tinymce editor works great, but when the user then wants to edit that content (with an edit action) the text area is just a plain text area - no tinymce editor - the content is displayed in the text area with html tags. I want the users to be able to use a tinymce editor to edit the content - just like when they created it. Am I making sense? Code: In Layout <script language="javascript" type="text/javascript" src="../tinymce/jscripts/tiny_mce/tiny_mce.js"></script> <script language="javascript" type="text/javascript"> tinyMCE.init({ mode : "textareas", theme : "advanced", theme_advanced_buttons1 : "bold,italic,underline,separator,bullist,numlist,link, separator,preview", theme_advanced_buttons2 : "", theme_advanced_buttons3 : "", plugins : "preview" }); In .rhtml partial (create and edit uses the same form) <label for="description">Description:</label> <%= text_area(''mod'', ''description'') %> Thanks for any help. On 1/30/07, Steve Bartholomew <steve-LWB5c3/XHbdBDgjK7y7TUQ@public.gmane.org> wrote:> > > I have tinymce working fine on a rails app. Can you post the code for > the textarea that you''re trying to make editable? > > Steve > > > > >-- Kim Griggs kim.griggs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org "We are all stakeholders in the Karma economy." --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thanks for everyones help - I got it to work - I was having a routing error. On Jan 30, 3:36 pm, "Kim Griggs" <kim.gri...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Sorry maybe I am confusing people. My problem is not that the text area is > not editable, my problem is that when a user creates content (with a create > action) for a page the tinymce editor works great, but when the user then > wants to edit that content (with an edit action) the text area is just a > plain text area - no tinymce editor - the content is displayed in the text > area with html tags. > > I want the users to be able to use a tinymce editor to edit the content - > just like when they created it. > > Am I making sense? > > Code: > > In Layout > <script language="javascript" type="text/javascript" > src="../tinymce/jscripts/tiny_mce/tiny_mce.js"></script> > <script language="javascript" type="text/javascript"> > tinyMCE.init({ > mode : "textareas", > theme : "advanced", > theme_advanced_buttons1 : > "bold,italic,underline,separator,bullist,numlist,link, separator,preview", > theme_advanced_buttons2 : "", > theme_advanced_buttons3 : "", > plugins : "preview" > > }); > > In .rhtml partial (create and edit uses the same form) > <label for="description">Description:</label> > <%= text_area(''mod'', ''description'') %> > > Thanks for any help. > > On 1/30/07, Steve Bartholomew <s...-LWB5c3/XHbdBDgjK7y7TUQ@public.gmane.org> wrote: > > > > > I have tinymce working fine on a rails app. Can you post the code for > > the textarea that you''re trying to make editable? > > > Steve > > -- > Kim Griggs > kim.gri...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > > "We are all stakeholders in the Karma economy."--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Kim wrote:> Thanks for everyones help - I got it to work - I was having a routing > error.very thanks, nice post -- 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 -~----------~----~----~----~------~----~------~--~---