Here are some examples:
Capitalized:
* Editor-in-Chief Sarah Jones
* The Editor of the New York Times
* I met with the Editor of the magazine.
Not capitalized:
* The editor of the book is well-known.
* The editor made several changes to the manuscript.
* I'm going to be an editor someday.
Let me know if you have more questions about capitalization!