Hi,
my name is Daniel, this is my first posting into this list.
Please excuse my poor english, I'm from germany,
so this is not my mothertongue I'm writing in.
When using the Scriptacolous Ajax.InPlaceEditor I can use the
"loadTextURL"-Parameter to pull a Text out of a Database, which should
be
displayed in a Form for Editing. After submitting the Form, the same
Text is displayed instead of the Form.
My problem is, that I'd need access to the Text, which is displayed
AFTER submitting the form. Is there a way to alter this text?
Background:
I store the text in the Database without any <br />-Tags, just
"\n"-linebreaks. When retrieving the text from the DB to display it in
the form, this keeps my linebreaks like they should. But after
submitting and showing the same text as "normal" HTML, all my
linebreaks are gone :-(
f.e. in the form, my text looks like this:
1st Row,
2nd Row,
3td Row.
After submitting the InPlaceEditor-Form,
the same text is displayed like this:
1st Row, 2nd Row, 3td Row
Does anybody know how to solve this?
Have a nice day,
Daniel
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---