Refactored comment editor (front-end).