add class to editor