Change editor context object to an enum.