Add command for clearing the editor

@alex-deaconu @stulees Please review. Thx.