On Apr 24, 2007, at 3:04 AM, Josh Nathanson wrote:

I am having trouble with jEditable/textarea that seems to be related to your issue. When I do a POST, and the textarea kicks back to the div, a space and two newlines are being inserted in the DOM in my div. If I go and re-edit the textarea, I have to delete the newlines from the textarea that were inserted in the div.

When you POST something to script this script should echo back content of the div. Is your script echoing back extra newline. Another option is you have extra newline already in the div. Does your html look like this:

<div>Lorem ipsum dolor sit.</div>

or like this

<div>
 Lorem ipsum dolor sit.
</div>

? The latter one has a newline in it. First one does not.

--
Mika Tuupola                      http://www.appelsiini.net/~tuupola/



Reply via email to