Upfront editing not working

When trying to edit a upfront theme, the page editor acts strange and displays code. I've attached a screenshot.