moved editor to document