rename style setting method and make sure the editor class are not removed