Must set editor in environment