I jut experienced this issue. I had written a post reply. It contain text with no formatting. I did enter some text like and but did nothing special with it.
When I went back to the post and clicked the edit button to add a little more to my reply, the visual editor appeared but the QUERY and NODE text was purged. I had to re-enter it.