Moved editor to its own module