I think the easiest solution is to use textile on the server side and
use loadTextURL to load in the verbatim textile content from the
server. Is there a specific reason you don''t want to use loadTextURL?
I suppose we could add explicit support for paragraph breaks with an
option. Is this something a lot of people would want?
On 9/13/05, Derek Haynes <derek.haynes@highgroove.com>
wrote:> All,
>
> I need to apply EditInPlace to a block of text that has line breaks.
> I''d like to have the editable text load instantly by grabbing the
text
> from the page instead of using the "loadTextURL" option. However,
this
> will pull in the html formatting ( <br> and <p>).
>
> Wanted to see what ideas the list had as far as making this possible -
> the best idea I''ve had so far are to have loadTextURL call a
> javascript function to substitute <br>s and <p>s with line
breaks.
> I''ve also seen that Flickr stores text to be edited in a Hash so
line
> breaks aren''t removed.
>
> Any ideas?
>
> Derek
> --
> Derek Haynes
> HighGroove Studios - http://www.highgroove.com
> Keeping it Simple.
> 404.593.4879
> _______________________________________________
> Rails-spinoffs mailing list
> Rails-spinoffs@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>