Class changer logic, used with ng-class, added to cyEditor