Fix editing commands in non-editor panes (e.g. settings).

Also don't export getActiveEditor -- it's just an internal helper.