script.aculo.us InPlaceEditor Drops Paragraph Tags

I submitted a Rails/script.aculo.us defect describing how Ajax.InPlaceEditor is stripping paragraph tags when loading the textfield/textarea. While waiting for the Universe to respond, I’ve had some time to research the issue a little more. Interestingly, the behavior seems to have originated with a changeset committed last September. That changeset actually addressed two issues: it fixed a Safari bug, and it added the convertHTMLLineBreaks functionality.

I hope the apparent author of the convertHTMLLineBreaks functionality will notice this ping to his blog. (I realize my approach for making contact is a bit unorthodox, but my feeling is that this constitutes better manners than intruding via email — though I can’t find his email address anyway). I’d like to understand more about the original reasons for the convertHTMLineBreaks functionality. What problems does it solve? Why does it need to strip paragraph tags as well as line breaks. And perhaps most importantly — why doesn’t it put something back in their place when the edited content is injected back into the DOM?

About these ads
This entry was posted in AJAX, Ruby on Rails, script.aculo.us. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s