I have an issue with line break handling. When I display contents of a textarea, I use nl2br to show linebreaks that the user has made. The problem comes the second time they make an edit, since the <br> code still appears in the inPlaceEdit box... which will no doubt confuse my users... Any way around this? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I think the new version in the trunk addresses this, but I''m not 100%... check the blog for details on the new version, there''s something about that in there. On 8/20/07, junkmate <junkmate-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I have an issue with line break handling. > > When I display contents of a textarea, I use nl2br to show linebreaks > that the user has made. The problem comes the second time they make an > edit, since the <br> code still appears in the inPlaceEdit box... > which will no doubt confuse my users... > > Any way around this? > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
For multi-line inline edits I have had the same issue before and found that having a <pre> tag around it worked On Aug 21, 11:30 am, junkmate <junkm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I have an issue with line break handling. > > When I display contents of a textarea, I use nl2br to show linebreaks > that the user has made. The problem comes the second time they make an > edit, since the <br> code still appears in the inPlaceEdit box... > which will no doubt confuse my users... > > Any way around this?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---