Integrated the editor into mainpage.html.