add badge support for editor. #228