christianp / writemaths

A jQuery plugin to give an instant preview of LaTeX in editing areas.
http://christianp.github.io/writemaths
27 stars 7 forks source link

Textarea loses returns and tabs #4

Open rockumk opened 9 years ago

rockumk commented 9 years ago

I had everything working well, but I've screwed something up.

Now whenever I click in an equation the equation previews ok (although in a different location), but the big problem is that all of the returns vanish and everthing in the text field flattens down to a single line. I can no long type returns (or tabs which I have a javascript to allow and which works before I click on an equation). Any ideas what I might have done wrong or where to start looking to fix the problem.

rockumk commented 9 years ago

Discovered something I thought I should mention. When I type in the textarea after it has started rendering I don't see the returns or tabs, but when I copy the text and paste it elsewhere I can see the returns and tabs are there, just not showing.