Move editor to its own file