fix editor for frontend