add some method to Editor