Moved editor variable assignment