# Why is the schematic editor damaging questions when editing schematics?

I've noticed that sometimes, when editing a schematic (but not adding a new schematic) to a question, that some of the text above the schematic will be eaten. It's not just me, either. See my latest revision at https://electronics.stackexchange.com/posts/61699/revisions

I can reproduce this problem by:

• clicking "edit the above schematic" for the first schematic
• click "save and insert" in circuitlab (no need to even make changes)

After these steps, some of the text that was before the schematic gets eaten, and the comment markers around the schematic are improperly nested. See the revision just before my fixes for an example.

I'm using Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0.

What's causing this? Can it be fixed?

• Lets work on finding a minimum number of steps to reproduce the problem
– W5VO
Jul 2 '13 at 14:33
• @W5VO I guess that means you've never experienced this, because it happens to me more often than not. Anyhow, reproduction steps added. Jul 2 '13 at 14:38
• It looks like it's deleting 13 characters before the <!-- Begin segment. I can reproduce this in Chrome.
– W5VO
Jul 2 '13 at 15:12
• I'm working on this, but this may be a fairly complicated fix, so I can't promise to have it done today. This issue will only appear in posts that contain LaTeX before the schematic. Jul 2 '13 at 16:23

• Funny that you say it's so rare. It happens to me every day. I guess more people should learn to use $\LaTeX$ :) Jul 3 '13 at 11:36