Use atom.workspace.getActiveEditor()
Prepare 0.18.0 release