Only add editor reference if -D editor is defined