added editor class
adapted to editor